Skip to content

Commit 58b618e

Browse files
committed
Update unit tests to accord for label in E0207
1 parent bc25879 commit 58b618e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/test/compile-fail/E0207.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
struct Foo;
1212

1313
impl<T: Default> Foo { //~ ERROR E0207
14+
//~| NOTE unconstrained lifetime parameter
1415
fn get(&self) -> T {
1516
<T as Default>::default()
1617
}

src/test/compile-fail/impl-unused-rps-in-assoc-type.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ trait Fun {
1919
struct Holder { x: String }
2020

2121
impl<'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[..]

src/test/compile-fail/issue-22886.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn crash_please() {
2121
struct Newtype(Option<Box<usize>>);
2222

2323
impl<'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>> {

src/test/compile-fail/issue-35139.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub trait MethodType {
1717
pub struct MTFn;
1818

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

0 commit comments

Comments
 (0)