rust/tests/ui/to_string_in_format_args_incremental.rs
2025-03-25 10:37:04 -04:00

11 lines
273 B
Rust

//@compile-flags: -C incremental=target/debug/test/incr
#![allow(clippy::uninlined_format_args)]
// see https://github.com/rust-lang/rust-clippy/issues/10969
fn main() {
let s = "Hello, world!";
println!("{}", s.to_string());
//~^ to_string_in_format_args
}