1 error: expected identifier, found keyword `Self`
2 --> $DIR/self_type_keyword.rs:2:10
5 | ^^^^ expected identifier, found keyword
7 error: expected identifier, found keyword `Self`
8 --> $DIR/self_type_keyword.rs:14:13
11 | ^^^^ expected identifier, found keyword
13 error: `mut` must be followed by a named binding
14 --> $DIR/self_type_keyword.rs:16:9
17 | ^^^^^^^^ help: remove the `mut` prefix: `Self`
19 = note: `mut` may be followed by `variable` and `variable @ pattern`
21 error: expected identifier, found keyword `Self`
22 --> $DIR/self_type_keyword.rs:19:17
24 LL | ref mut Self => (),
25 | ^^^^ expected identifier, found keyword
27 error: expected identifier, found keyword `Self`
28 --> $DIR/self_type_keyword.rs:23:15
30 LL | Foo { Self } => (),
31 | ^^^^ expected identifier, found keyword
33 error: expected identifier, found keyword `Self`
34 --> $DIR/self_type_keyword.rs:29:26
36 LL | extern crate core as Self;
37 | ^^^^ expected identifier, found keyword
39 error: expected identifier, found keyword `Self`
40 --> $DIR/self_type_keyword.rs:34:32
42 LL | use std::option::Option as Self;
43 | ^^^^ expected identifier, found keyword
45 error: expected identifier, found keyword `Self`
46 --> $DIR/self_type_keyword.rs:39:11
49 | ^^^^ expected identifier, found keyword
51 error: lifetimes cannot use keyword names
52 --> $DIR/self_type_keyword.rs:6:12
54 LL | struct Bar<'Self>;
57 error: cannot find macro `Self` in this scope
58 --> $DIR/self_type_keyword.rs:21:9
63 error[E0531]: cannot find unit struct, unit variant or constant `Self` in this scope
64 --> $DIR/self_type_keyword.rs:16:13
67 | ^^^^ not found in this scope
69 note: unit struct `foo::Self` exists but is inaccessible
70 --> $DIR/self_type_keyword.rs:2:3
73 | ^^^^^^^^^^^^ not accessible
75 error[E0392]: parameter `'Self` is never used
76 --> $DIR/self_type_keyword.rs:6:12
78 LL | struct Bar<'Self>;
79 | ^^^^^ unused parameter
81 = help: consider removing `'Self`, referring to it in a field, or using a marker such as `PhantomData`
83 error: aborting due to 12 previous errors
85 Some errors have detailed explanations: E0392, E0531.
86 For more information about an error, try `rustc --explain E0392`.