summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/duplicated-use.rs
blob: bfbdcdbf311d38ab80669078fd4db50adb84c00f (plain)
1
2
3
4
5
6
7
8
9
10
//@ revisions: real pre_expansion
//@[pre_expansion] check-pass

#![feature(precise_capturing)]

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

fn main() {}