diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2093-infer-outlives/explicit-dyn.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2093-infer-outlives/explicit-dyn.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2093-infer-outlives/explicit-dyn.rs b/tests/ui/rfcs/rfc-2093-infer-outlives/explicit-dyn.rs new file mode 100644 index 000000000..419fb0a0e --- /dev/null +++ b/tests/ui/rfcs/rfc-2093-infer-outlives/explicit-dyn.rs @@ -0,0 +1,12 @@ +#![feature(rustc_attrs)] + +trait Trait<'x, T> where T: 'x { +} + +#[rustc_outlives] +struct Foo<'a, A> //~ ERROR rustc_outlives +{ + foo: Box<dyn Trait<'a, A>> +} + +fn main() {} |