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

9 lines
207 B
Rust
Raw Normal View History

2024-06-05 15:43:25 -05:00
//@ 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() {}