cargo/crates/rustfix/tests/everything/dedup-suggestions.fixed.rs
Weihang Lo 8aec0a40f5
test(rustfix): switch to a simpler case for dedup-suggestions
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
2024-10-31 22:05:24 -04:00

12 lines
156 B
Rust

// See <https://github.com/rust-lang/cargo/issues/13027>
macro_rules! foo {
() => {
let _ = &1;
};
}
fn main() {
foo!();
foo!();
}