diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2093-infer-outlives/reference.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2093-infer-outlives/reference.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2093-infer-outlives/reference.rs b/tests/ui/rfcs/rfc-2093-infer-outlives/reference.rs new file mode 100644 index 000000000..a48a3315a --- /dev/null +++ b/tests/ui/rfcs/rfc-2093-infer-outlives/reference.rs @@ -0,0 +1,8 @@ +#![feature(rustc_attrs)] + +#[rustc_outlives] +struct Foo<'a, T> { //~ ERROR rustc_outlives + bar: &'a T, +} + +fn main() {} |