]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self_type_keyword.stderr
3b095b7841839dda2d6810e067fcb8b19cf31d17
[rust.git] / src / test / ui / self / self_type_keyword.stderr
1 error: expected identifier, found keyword `Self`
2   --> $DIR/self_type_keyword.rs:4:10
3    |
4 LL |   struct Self;
5    |          ^^^^ expected identifier, found keyword
6
7 error: expected identifier, found keyword `Self`
8   --> $DIR/self_type_keyword.rs:15:13
9    |
10 LL |         ref Self => (),
11    |             ^^^^ expected identifier, found keyword
12
13 error: expected identifier, found keyword `Self`
14   --> $DIR/self_type_keyword.rs:17:13
15    |
16 LL |         mut Self => (),
17    |             ^^^^ expected identifier, found keyword
18
19 error: expected identifier, found keyword `Self`
20   --> $DIR/self_type_keyword.rs:19:17
21    |
22 LL |         ref mut Self => (),
23    |                 ^^^^ expected identifier, found keyword
24
25 error: expected identifier, found keyword `Self`
26   --> $DIR/self_type_keyword.rs:23:15
27    |
28 LL |         Foo { Self } => (),
29    |               ^^^^ expected identifier, found keyword
30
31 error: expected identifier, found keyword `Self`
32   --> $DIR/self_type_keyword.rs:29:26
33    |
34 LL |     extern crate core as Self;
35    |                          ^^^^ expected identifier, found keyword
36
37 error: expected identifier, found keyword `Self`
38   --> $DIR/self_type_keyword.rs:34:32
39    |
40 LL |     use std::option::Option as Self;
41    |                                ^^^^ expected identifier, found keyword
42
43 error: expected identifier, found keyword `Self`
44   --> $DIR/self_type_keyword.rs:39:11
45    |
46 LL |     trait Self {}
47    |           ^^^^ expected identifier, found keyword
48
49 error: lifetimes cannot use keyword names
50   --> $DIR/self_type_keyword.rs:8:12
51    |
52 LL | struct Bar<'Self>;
53    |            ^^^^^
54
55 error: cannot find macro `Self!` in this scope
56   --> $DIR/self_type_keyword.rs:21:9
57    |
58 LL |         Self!() => (),
59    |         ^^^^
60
61 error: aborting due to 10 previous errors
62