Skip to content

Commit

Permalink
Update unit tests to accord for label in E0207
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanuraj committed Aug 5, 2016
1 parent bc25879 commit 58b618e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/compile-fail/E0207.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
struct Foo;

impl<T: Default> Foo { //~ ERROR E0207
//~| NOTE unconstrained lifetime parameter
fn get(&self) -> T {
<T as Default>::default()
}
Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/impl-unused-rps-in-assoc-type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ trait Fun {
struct Holder { x: String }

impl<'a> Fun for Holder { //~ ERROR E0207
//~| NOTE unconstrained lifetime parameter
type Output = &'a str;
fn call<'b>(&'b self) -> &'b str {
&self.x[..]
Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/issue-22886.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn crash_please() {
struct Newtype(Option<Box<usize>>);

impl<'a> Iterator for Newtype { //~ ERROR E0207
//~| NOTE unconstrained lifetime parameter
type Item = &'a Box<usize>;

fn next(&mut self) -> Option<&Box<usize>> {
Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/issue-35139.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub trait MethodType {
pub struct MTFn;

impl<'a> MethodType for MTFn { //~ ERROR E0207
//~| NOTE unconstrained lifetime parameter
type GetProp = fmt::Debug + 'a;
}

Expand Down

0 comments on commit 58b618e

Please sign in to comment.