File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1111struct Foo ;
1212
1313impl < T : Default > Foo { //~ ERROR E0207
14+ //~| NOTE unconstrained lifetime parameter
1415 fn get ( & self ) -> T {
1516 <T as Default >:: default ( )
1617 }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ trait Fun {
1919struct Holder { x : String }
2020
2121impl < ' a > Fun for Holder { //~ ERROR E0207
22+ //~| NOTE unconstrained lifetime parameter
2223 type Output = & ' a str ;
2324 fn call < ' b > ( & ' b self ) -> & ' b str {
2425 & self . x [ ..]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ fn crash_please() {
2121struct Newtype ( Option < Box < usize > > ) ;
2222
2323impl < ' a > Iterator for Newtype { //~ ERROR E0207
24+ //~| NOTE unconstrained lifetime parameter
2425 type Item = & ' a Box < usize > ;
2526
2627 fn next ( & mut self ) -> Option < & Box < usize > > {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pub trait MethodType {
1717pub struct MTFn ;
1818
1919impl < ' a > MethodType for MTFn { //~ ERROR E0207
20+ //~| NOTE unconstrained lifetime parameter
2021 type GetProp = fmt:: Debug + ' a ;
2122}
2223
You can’t perform that action at this time.
0 commit comments