diff options
Diffstat (limited to 'tests/ui/macros/issue-19163.rs')
-rw-r--r-- | tests/ui/macros/issue-19163.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-19163.rs b/tests/ui/macros/issue-19163.rs new file mode 100644 index 000000000..d98c5912a --- /dev/null +++ b/tests/ui/macros/issue-19163.rs @@ -0,0 +1,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 +} |