about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/bad-lifetimes.rs
blob: 8e30973cd3a1816da0b5098f805be9fbb4bcf942 (plain)
1
2
3
4
5
6
7
8
9
10
fn no_elided_lt() -> impl Sized + use<'_> {}
//~^ ERROR missing lifetime specifier

fn static_lt() -> impl Sized + use<'static> {}
//~^ ERROR expected lifetime parameter in `use<...>` precise captures list, found `'static`

fn missing_lt() -> impl Sized + use<'missing> {}
//~^ ERROR use of undeclared lifetime name `'missing`

fn main() {}