rust/tests/ui/impl-trait/precise-capturing/dyn-use.rs
2024-08-17 12:33:29 -04:00

3 lines
124 B
Rust

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