Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
underscore-lifetime
/
dyn-trait-underscore-in-struct.rs
blob: e1deab736cf56eb185e781a8294d4e65b1524dc7 [
file
]
// 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
()
{}