mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
8 lines
222 B
Rust
8 lines
222 B
Rust
// Check that `write!` without a destination gives a helpful error message.
|
|
// See https://github.com/rust-lang/rust/issues/152493
|
|
|
|
fn main() {
|
|
write!("S");
|
|
//~^ ERROR requires a destination and format arguments
|
|
}
|