mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
11 lines
370 B
Rust
11 lines
370 B
Rust
//@ aux-build:format-string-proc-macro.rs
|
|
|
|
extern crate format_string_proc_macro;
|
|
|
|
fn main() {
|
|
format_string_proc_macro::respan_to_invalid_format_literal!("¡");
|
|
//~^ ERROR invalid format string: expected `'}'` but string was terminated
|
|
format_args!(r#concat!("¡ {"));
|
|
//~^ ERROR invalid format string: expected `'}'` but string was terminated
|
|
}
|