Skip to content

Commit f18446e

Browse files
author
Julian Kulesh
committed
add magic comment for ui test, remove newline
1 parent 537f2a6 commit f18446e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/librustc_resolve/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,6 @@ impl<'a> Resolver<'a> {
32123212
let name = path[path.len() - 1].node.name;
32133213
// Make sure error reporting is deterministic.
32143214
names.sort_by_key(|name| name.as_str());
3215-
32163215
match find_best_match_for_name(names.iter(), &name.as_str(), None) {
32173216
Some(found) if found != name => Some(found),
32183217
_ => None,

src/test/ui/issue-46332.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ struct TyInt {}
1717

1818
fn main() {
1919
TyUInt {};
20+
//~^ ERROR cannot find struct, variant or union type `TyUInt` in this scope
2021
}

0 commit comments

Comments
 (0)