blob: 13e4eaac39f8850a6e53ca9710bff4709e87f228 (
plain)
1
2
3
4
5
6
7
8
9
|
// Test that we catch that the reference outlives the referent and we
// successfully emit a diagnostic. Regression test for issue #114714.
#![feature(generic_const_items)]
#![allow(incomplete_features)]
const Q<'a, 'b>: &'a &'b () = &&(); //~ ERROR reference has a longer lifetime than the data it references
fn main() {}
|