blob: 6bfd18de18c6ae995e7eff2d76910eb0706df8fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Regression test for issue #68550.
//
// The `&'static A:` where clause was triggering
// ICEs because it wound up being compiled to reference
// the `'empty(U0)` region.
fn run<'a, A>(x: A)
where
A: 'static,
&'static A: ,
{
let _: &'a A = &x; //~ ERROR `x` does not live long enough
}
fn main() {}
|