1 error: expected identifier, found keyword `Self`
2 --> $DIR/self_type_keyword.rs:4:10
5 | ^^^^ expected identifier, found keyword
7 error: expected identifier, found keyword `Self`
8 --> $DIR/self_type_keyword.rs:15:13
11 | ^^^^ expected identifier, found keyword
13 error: expected identifier, found keyword `Self`
14 --> $DIR/self_type_keyword.rs:17:13
17 | ^^^^ expected identifier, found keyword
19 error: expected identifier, found keyword `Self`
20 --> $DIR/self_type_keyword.rs:19:17
22 LL | ref mut Self => (),
23 | ^^^^ expected identifier, found keyword
25 error: expected identifier, found keyword `Self`
26 --> $DIR/self_type_keyword.rs:23:15
28 LL | Foo { Self } => (),
29 | ^^^^ expected identifier, found keyword
31 error: expected identifier, found keyword `Self`
32 --> $DIR/self_type_keyword.rs:29:26
34 LL | extern crate core as Self;
35 | ^^^^ expected identifier, found keyword
37 error: expected identifier, found keyword `Self`
38 --> $DIR/self_type_keyword.rs:34:32
40 LL | use std::option::Option as Self;
41 | ^^^^ expected identifier, found keyword
43 error: expected identifier, found keyword `Self`
44 --> $DIR/self_type_keyword.rs:39:11
47 | ^^^^ expected identifier, found keyword
49 error: lifetimes cannot use keyword names
50 --> $DIR/self_type_keyword.rs:8:12
52 LL | struct Bar<'Self>;
55 error: cannot find macro `Self!` in this scope
56 --> $DIR/self_type_keyword.rs:21:9
61 error: aborting due to 10 previous errors