blob: a2b05db03515024d80efbc3c3e9b085185e06e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const _: () = ();
fn main() {
a // Shouldn't suggest underscore
//~^ ERROR: cannot find value `a` in this scope
}
trait Unknown {}
#[allow(unused_imports)]
use Unknown as _;
fn foo<T: A>(x: T) {} // Shouldn't suggest underscore
//~^ ERROR: cannot find trait `A` in this scope
|