mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

This case also emits an insert-only suggestions (span start == end), and doesn't rely on any lint behavior. See also * https://github.com/rust-lang/cargo/pull/13728 * https://github.com/rust-lang/cargo/issues/13027
12 lines
156 B
Rust
12 lines
156 B
Rust
// See <https://github.com/rust-lang/cargo/issues/13027>
|
|
macro_rules! foo {
|
|
() => {
|
|
let _ = &1;
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
foo!();
|
|
foo!();
|
|
}
|