mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
19 lines
487 B
Plaintext
19 lines
487 B
Plaintext
error: format argument must be a string literal
|
|
--> $DIR/issue-86865.rs:4:14
|
|
|
|
|
LL | println!(b"foo");
|
|
| -^^^^^
|
|
| |
|
|
| help: consider removing the leading `b`
|
|
|
|
error: format argument must be a string literal
|
|
--> $DIR/issue-86865.rs:8:15
|
|
|
|
|
LL | write!(s, b"foo{}", "bar");
|
|
| -^^^^^^^
|
|
| |
|
|
| help: consider removing the leading `b`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|