mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
12 lines
226 B
Rust
12 lines
226 B
Rust
//@ aux-build:issue-19163.rs
|
|
|
|
#[macro_use] extern crate issue_19163;
|
|
|
|
use std::io::Write;
|
|
|
|
fn main() {
|
|
let mut v = vec![];
|
|
mywrite!(&v, "Hello world");
|
|
//~^ ERROR cannot borrow data in a `&` reference as mutable
|
|
}
|