rust/tests/ui/impl-trait/precise-capturing/dyn-use.rs
2024-06-17 22:35:25 -04:00

5 lines
156 B
Rust

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