about summary refs log tree commit diff
path: root/tests/ui/higher-ranked/erroneous-lifetime-bound.rs
blob: b1720087b5f6db909763678654fb0dff3bfa448f (plain)
1
2
3
4
5
fn foo<T>() where T: for<'a> 'a {}
//~^ ERROR `for<...>` may only modify trait bounds, not lifetime bounds
//~| ERROR use of undeclared lifetime name `'a` [E0261]

fn main() {}