rustc/tests/ui/impl-trait/precise-capturing/dyn-use.rs
2024-10-21 11:08:01 +02:00

3 lines
124 B
Rust

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