Skip to content

Commit

Permalink
Fix the regression test for issue 50716.
Browse files Browse the repository at this point in the history
  • Loading branch information
vakaras committed Jun 27, 2018
1 parent 612eeb1 commit 8b1ea84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/compile-fail/nll/issue-50716.rs
Expand Up @@ -11,6 +11,8 @@
// Regression test for the issue #50716: NLL ignores lifetimes bounds
// derived from `Sized` requirements

#![feature(nll)]

trait A {
type X: ?Sized;
}
Expand All @@ -20,7 +22,7 @@ where
for<'b> &'b T: A,
<&'static T as A>::X: Sized
{
let _x = *s; //~ ERROR mismatched types [E0308]
let _x = *s; //~ ERROR free region `'a` does not outlive free region `'static`
}

fn main() {}

0 comments on commit 8b1ea84

Please sign in to comment.