rust/tests/ui/impl-trait/precise-capturing/dyn-use.rs

3 lines
124 B
Rust

fn dyn() -> &'static dyn use<> { &() }
//~^ ERROR expected one of `!`, `(`, `::`, `<`, `where`, or `{`, found keyword `use`