about summary refs log tree commit diff
path: root/tests/ui/higher-ranked/trait-bounds/trivial-does-not-hold.rs
blob: fa76686cc8b61da7b63f0c7ba8f1a6fd1553068d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Minimized test from #59311.

pub fn crash()
where
    for<'a> &'a (): 'static,
{
    || {};
    //~^ ERROR higher-ranked lifetime error
}

fn main() {}