]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/use-placement-resolve.fixed
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / suggestions / use-placement-resolve.fixed
1 // compile-flags: --test
2 // run-rustfix
3 // Checks that the `use` suggestion appears *below* this inner attribute.
4 // There was an issue where the test synthetic #[allow(dead)] attribute on
5 // main which has a dummy span caused the suggestion to be placed at the top
6 // of the file.
7 #![allow(unused)]
8
9 use std::fmt::Debug;
10
11 fn main() {}
12
13 fn foobar<T: Debug>(x: T) {} //~ ERROR expected trait, found derive macro