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

9 lines
207 B
Rust

//@ revisions: real pre_expansion
//@[pre_expansion] check-pass
#[cfg(real)]
fn hello<'a>() -> impl Sized + use<'a> + use<'a> {}
//[real]~^ ERROR duplicate `use<...>` precise capturing syntax
fn main() {}