mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
8 lines
194 B
Rust
8 lines
194 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/12744
|
|
|
|
//@ run-pass
|
|
fn main() {
|
|
fn test() -> Box<dyn std::any::Any + 'static> { Box::new(1) }
|
|
println!("{:?}", test())
|
|
}
|