File tree 4 files changed +4
-0
lines changed
4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
struct Foo ;
12
12
13
13
impl < T : Default > Foo { //~ ERROR E0207
14
+ //~| NOTE unconstrained lifetime parameter
14
15
fn get ( & self ) -> T {
15
16
<T as Default >:: default ( )
16
17
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ trait Fun {
19
19
struct Holder { x : String }
20
20
21
21
impl < ' a > Fun for Holder { //~ ERROR E0207
22
+ //~| NOTE unconstrained lifetime parameter
22
23
type Output = & ' a str ;
23
24
fn call < ' b > ( & ' b self ) -> & ' b str {
24
25
& self . x [ ..]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ fn crash_please() {
21
21
struct Newtype ( Option < Box < usize > > ) ;
22
22
23
23
impl < ' a > Iterator for Newtype { //~ ERROR E0207
24
+ //~| NOTE unconstrained lifetime parameter
24
25
type Item = & ' a Box < usize > ;
25
26
26
27
fn next ( & mut self ) -> Option < & Box < usize > > {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pub trait MethodType {
17
17
pub struct MTFn ;
18
18
19
19
impl < ' a > MethodType for MTFn { //~ ERROR E0207
20
+ //~| NOTE unconstrained lifetime parameter
20
21
type GetProp = fmt:: Debug + ' a ;
21
22
}
22
23
You can’t perform that action at this time.
0 commit comments