]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-86865.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / issue-86865.rs
1 use std::fmt::Write;
2
3 fn main() {
4     println!(b"foo");
5     //~^ ERROR format argument must be a string literal
6     //~| HELP consider removing the leading `b`
7     let mut s = String::new();
8     write!(s, b"foo{}", "bar");
9     //~^ ERROR format argument must be a string literal
10     //~| HELP consider removing the leading `b`
11 }