Skip to content

Commit 7fe60c1

Browse files
committed
fix error message in test
1 parent 574a8cd commit 7fe60c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait Trait {
1212
fn outer(self) {
1313
fn inner(_: Self) {
1414
//~^ ERROR can't use type parameters from outer function
15-
//~^^ ERROR use of undeclared type name `Self`
15+
//~^^ ERROR use of `Self` outside of an impl or trait
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)