We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537f2a6 commit f18446eCopy full SHA for f18446e
src/librustc_resolve/lib.rs
@@ -3212,7 +3212,6 @@ impl<'a> Resolver<'a> {
3212
let name = path[path.len() - 1].node.name;
3213
// Make sure error reporting is deterministic.
3214
names.sort_by_key(|name| name.as_str());
3215
-
3216
match find_best_match_for_name(names.iter(), &name.as_str(), None) {
3217
Some(found) if found != name => Some(found),
3218
_ => None,
src/test/ui/issue-46332.rs
@@ -17,4 +17,5 @@ struct TyInt {}
17
18
fn main() {
19
TyUInt {};
20
+ //~^ ERROR cannot find struct, variant or union type `TyUInt` in this scope
21
}
0 commit comments