Fix fallout in tests.

This commit is contained in:
Jeffrey Seyfried 2016-09-24 03:09:14 +00:00
parent d854c362fe
commit dfa69be38a
5 changed files with 23 additions and 18 deletions

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern crate bäz; //~ ERROR non-ascii idents
extern crate core as bäz; //~ ERROR non-ascii idents
use föö::bar; //~ ERROR non-ascii idents

View file

@ -39,11 +39,17 @@ pub fn main() {
}
}
use std::option::Option as Self;
//~^ ERROR expected identifier, found keyword `Self`
mod m1 {
extern crate core as Self;
//~^ ERROR expected identifier, found keyword `Self`
}
extern crate Self;
//~^ ERROR expected identifier, found keyword `Self`
mod m2 {
use std::option::Option as Self;
//~^ ERROR expected identifier, found keyword `Self`
}
trait Self {}
//~^ ERROR expected identifier, found keyword `Self`
mod m3 {
trait Self {}
//~^ ERROR expected identifier, found keyword `Self`
}