Files
rust/tests/ui/span/mutability-suggestion-fullwidth-ampersand.rs
T

10 lines
210 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Regression test for https://github.com/rust-lang/rust/issues/139089
fn foo(x: Vec<u8>) {
//~^ ERROR unknown start of token
x.push(0);
//~^ ERROR cannot borrow `*x` as mutable
}
fn main() {}