Skip to content

Commit a6ffa42

Browse files
Update E0391 to new format.
1 parent 802d081 commit a6ffa42

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl<'a,'tcx> CrateCtxt<'a,'tcx> {
184184

185185
let mut err = struct_span_err!(tcx.sess, span, E0391,
186186
"unsupported cyclic reference between types/traits detected");
187+
err.span_label(span, &format!("cyclic reference"));
187188

188189
match cycle[0] {
189190
AstConvRequest::GetItemTypeScheme(def_id) |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct S {
1818
}
1919

2020
impl Foo for S { //~ ERROR: `Foo` is not a trait
21+
//~| NOTE: not a trait
2122
//~| NOTE: type aliases cannot be used for traits
2223
fn bar() { }
2324
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
trait I {}
1212
type K = I;
1313
impl K for isize {} //~ ERROR: `K` is not a trait
14+
//~| NOTE: not a trait
1415
//~| NOTE: aliases cannot be used for traits
1516

1617
use ImportError; //~ ERROR unresolved

0 commit comments

Comments
 (0)