mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
10 lines
210 B
Rust
10 lines
210 B
Rust
// 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() {}
|