diff options
Diffstat (limited to 'src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs')
-rw-r--r-- | src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs b/src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs deleted file mode 100644 index 319789c4e..000000000 --- a/src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs +++ /dev/null @@ -1,18 +0,0 @@ -// Regression test for #70813 (this used to trigger a debug assertion) - -trait Trait {} - -struct S; - -impl<'a> Trait for &'a mut S {} - -fn foo<X>(_: X) -where - for<'b> &'b X: Trait, -{ -} - -fn main() { - let s = S; - foo::<S>(s); //~ ERROR the trait bound `for<'b> &'b S: Trait` is not satisfied -} |