]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/typo-suggestion-named-underscore.rs
Auto merge of #97802 - Enselic:add-no_ignore_sigkill-feature, r=joshtriplett
[rust.git] / src / test / ui / resolve / typo-suggestion-named-underscore.rs
1 const _: () = ();
2
3 fn main() {
4     a // Shouldn't suggest underscore
5     //~^ ERROR: cannot find value `a` in this scope
6 }
7
8 trait Unknown {}
9
10 #[allow(unused_imports)]
11 use Unknown as _;
12
13 fn foo<T: A>(x: T) {} // Shouldn't suggest underscore
14 //~^ ERROR: cannot find trait `A` in this scope