diff options
Diffstat (limited to 'tests/ui/rust-2018/edition-lint-infer-outlives.rs')
-rw-r--r-- | tests/ui/rust-2018/edition-lint-infer-outlives.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/edition-lint-infer-outlives.rs b/tests/ui/rust-2018/edition-lint-infer-outlives.rs index 75783764a..3f63cb8e9 100644 --- a/tests/ui/rust-2018/edition-lint-infer-outlives.rs +++ b/tests/ui/rust-2018/edition-lint-infer-outlives.rs @@ -801,4 +801,12 @@ where yoo: &'a U } +// https://github.com/rust-lang/rust/issues/105150 +struct InferredWhereBoundWithInlineBound<'a, T: ?Sized> +//~^ ERROR outlives requirements can be inferred + where T: 'a, +{ + data: &'a T, +} + fn main() {} |