mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00

This was attempted in [1] then reverted in [2] because of fallout. Recently, this was made an edition-dependent error in [3]. Make missing fragment specifiers an unconditional error again. [1]: https://github.com/rust-lang/rust/pull/75516 [2]: https://github.com/rust-lang/rust/pull/80210 [3]: https://github.com/rust-lang/rust/pull/128006
29 lines
713 B
Plaintext
29 lines
713 B
Plaintext
warning: meta-variable repeats with different Kleene operator
|
|
--> $DIR/expansion-time.rs:5:29
|
|
|
|
|
LL | ( $($i:ident)* ) => { $($i)+ };
|
|
| - ^^ - conflicting repetition
|
|
| |
|
|
| expected repetition
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/expansion-time.rs:3:8
|
|
|
|
|
LL | #[warn(meta_variable_misuse)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: include macro expected single expression in source
|
|
--> $DIR/expansion-time-include.rs:4:1
|
|
|
|
|
LL | 2
|
|
| ^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/expansion-time.rs:18:8
|
|
|
|
|
LL | #[warn(incomplete_include)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: 2 warnings emitted
|
|
|