Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display better snippet for invalid char literal #30763

Merged
merged 1 commit into from
Jan 15, 2016

Commits on Jan 14, 2016

  1. 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 rust-lang#30033
    gchp committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    acc9428 View commit details
    Browse the repository at this point in the history