mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
14 lines
354 B
Rust
14 lines
354 B
Rust
use std::convert::identity;
|
|
|
|
fn test<'a: 'a>(n: bool) -> impl Sized + 'a {
|
|
//~^ ERROR concrete type differs from previous defining opaque type use
|
|
let true = n else { loop {} };
|
|
let _ = || {
|
|
let _ = identity::<&'a ()>(test(false));
|
|
//~^ ERROR expected generic lifetime parameter, found `'_`
|
|
};
|
|
loop {}
|
|
}
|
|
|
|
fn main() {}
|