Skip to content

Commit 8b1ea84

Browse files
committed
Fix the regression test for issue 50716.
1 parent 612eeb1 commit 8b1ea84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/compile-fail/nll/issue-50716.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Regression test for the issue #50716: NLL ignores lifetimes bounds
1212
// derived from `Sized` requirements
1313

14+
#![feature(nll)]
15+
1416
trait A {
1517
type X: ?Sized;
1618
}
@@ -20,7 +22,7 @@ where
2022
for<'b> &'b T: A,
2123
<&'static T as A>::X: Sized
2224
{
23-
let _x = *s; //~ ERROR mismatched types [E0308]
25+
let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
2426
}
2527

2628
fn main() {}

0 commit comments

Comments
 (0)