rust/tests/ui/macros/issue-19163.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
225 B
Rust
Raw Normal View History

// 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
}