add magic comment for ui test, remove newline

This commit is contained in:
Julian Kulesh 2017-12-01 11:38:30 +03:00
parent 537f2a6e1e
commit f18446e78d
2 changed files with 1 additions and 1 deletions

View file

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

View file

@ -17,4 +17,5 @@ struct TyInt {}
fn main() {
TyUInt {};
//~^ ERROR cannot find struct, variant or union type `TyUInt` in this scope
}