File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ impl<'a> Parser<'a> {
133
133
}
134
134
} else {
135
135
let msg = format ! ( "expected type, found {}" , self . this_token_descr( ) ) ;
136
- let mut err = self . fatal ( & msg) ;
136
+ let mut err = self . struct_span_err ( self . token . span , & msg) ;
137
137
err. span_label ( self . token . span , "expected type" ) ;
138
138
self . maybe_annotate_with_ascription ( & mut err, true ) ;
139
139
return Err ( err) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ LL | let _ = Option:Some(vec![0, 1]);
11
11
|
12
12
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
13
13
= note: for more information, see https://github.com/rust-lang/rust/issues/23416
14
- = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
14
+ = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
15
16
16
error: aborting due to previous error
17
17
You can’t perform that action at this time.
0 commit comments