rust/src/test/ui/hygiene/expansion-info-reset.stderr

14 lines
399 B
Plaintext
Raw Normal View History

2018-08-23 18:26:50 -05:00
error: format argument must be a string literal
--> $DIR/expansion-info-reset.rs:2:18
2018-08-23 18:26:50 -05:00
|
LL | format_args!({ #[derive(Clone)] struct S; });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-23 18:26:50 -05:00
help: you might be missing a string literal to format with
|
LL | format_args!("{}", { #[derive(Clone)] struct S; });
| ^^^^^
error: aborting due to previous error