mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
248 B
Rust
13 lines
248 B
Rust
// Check that the `'_` in `dyn Trait + '_` acts like ordinary elision,
|
|
// and not like an object lifetime default.
|
|
//
|
|
// cc #48468
|
|
|
|
use std::fmt::Debug;
|
|
|
|
struct Foo {
|
|
x: Box<dyn Debug + '_>, //~ ERROR missing lifetime specifier
|
|
}
|
|
|
|
fn main() {}
|