mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
10 lines
326 B
Rust
10 lines
326 B
Rust
// 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() {}
|