blob: d98c5912af2ee76ee53794572563c65bdaa9f825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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
}
|