diff options
| author | Greg Chapple <gregchapple1@gmail.com> | 2016-01-07 16:12:28 +0000 |
|---|---|---|
| committer | Greg Chapple <gregchapple1@gmail.com> | 2016-01-14 17:34:42 +0000 |
| commit | acc9428c6a99d199f35032ec7f794385e4c9fd24 (patch) | |
| tree | ea9da6f39079fa1f203a7ada38a6da79a6d7ada1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d3c83fef245f1cb2e523c8913b8968c98faec1f4 (diff) | |
| download | rust-acc9428c6a99d199f35032ec7f794385e4c9fd24.tar.gz rust-acc9428c6a99d199f35032ec7f794385e4c9fd24.zip | |
Display better snippet for invalid char literal
Given this code:
fn main() {
let _ = 'abcd';
}
The compiler would give a message like:
error: character literal may only contain one codepoint: ';
let _ = 'abcd';
^~
With this change, the message now displays:
error: character literal may only contain one codepoint: 'abcd'
let _ = 'abcd'
^~~~~~
Fixes #30033
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
