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

Error text overlaps in rustc. #42704

Closed
quadrupleslap opened this issue Jun 16, 2017 · 1 comment
Closed

Error text overlaps in rustc. #42704

quadrupleslap opened this issue Jun 16, 2017 · 1 comment

Comments

@quadrupleslap
Copy link

This might not be the right place to post it, but I'm getting strange overlapping text on the latest nightly build of Rust:

use std::mem;
fn main() {
    let chars: Option<&str> = unsafe { mem::uninitialized() };
    chars += 1;
}

Expected output (works on rustc 1.18.0 (03fc9d622 2017-06-06)):

  |
4 |     chars += 1;
  |     ^^^^^ cannot use `+=` on type `std::option::Option<&str>`

Actual output (on rustc 1.19.0-nightly (258ae6dd9 2017-06-15)):

  |
4 |     chars += 1;
  |     -----^^^^^ot use `+=` on type `std::option::Option<&str>`

Playground: https://is.gd/k0HSS8

@sfackler
Copy link
Member

Duplicate of #42595.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants