mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
18 lines
340 B
Rust
18 lines
340 B
Rust
//@ known-bug: #127351
|
|
#![feature(lazy_type_alias)]
|
|
#![allow(incomplete_features)]
|
|
|
|
struct Outer0<'a, T>(ExplicitTypeOutlives<'a, T>);
|
|
type ExplicitTypeOutlives<'a, T: 'a> = (&'a (), T);
|
|
|
|
pub struct Warns {
|
|
_significant_drop: ExplicitTypeOutlives,
|
|
field: String,
|
|
}
|
|
|
|
pub fn test(w: Warns) {
|
|
_ = || drop(w.field);
|
|
}
|
|
|
|
fn main() {}
|