Closed
Description
use std::list;
?use vec;
fn main() {}
This yields:
../src/test/compile-fail/bad-token-use.rs:1:13: 1:14 error: unknown start of token: 63
../src/test/compile-fail/bad-token-use.rs:1 use std::list;
^
This is bad in a few different ways:
- "unknown start of token" is obscure, and why can't it print out '?' instead of 63?
- The error message does not show the erroneous code.
- The span is messed-up.
- I ran into this with a file in rustc, and in that case, the error message was much worse: the span was line 1 of
rustc.rc
. Panic-inducing.