Update unit tests to accord for label in E0207
This commit is contained in:
parent
bc258791eb
commit
58b618e527
@ -11,6 +11,7 @@
|
||||
struct Foo;
|
||||
|
||||
impl<T: Default> Foo { //~ ERROR E0207
|
||||
//~| NOTE unconstrained lifetime parameter
|
||||
fn get(&self) -> T {
|
||||
<T as Default>::default()
|
||||
}
|
||||
|
@ -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[..]
|
||||
|
@ -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>> {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user