]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self_type_keyword.stderr
Update ui tests
[rust.git] / src / test / ui / self / self_type_keyword.stderr
1 error: expected identifier, found keyword `Self`
2   --> $DIR/self_type_keyword.rs:2: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:14:13
9    |
10 LL |         ref Self => (),
11    |             ^^^^ expected identifier, found keyword
12
13 error: `mut` must be followed by a named binding
14   --> $DIR/self_type_keyword.rs:16:9
15    |
16 LL |         mut Self => (),
17    |         ^^^^^^^^ help: remove the `mut` prefix: `Self`
18    |
19    = note: `mut` may be followed by `variable` and `variable @ pattern`
20
21 error: expected identifier, found keyword `Self`
22   --> $DIR/self_type_keyword.rs:19:17
23    |
24 LL |         ref mut Self => (),
25    |                 ^^^^ expected identifier, found keyword
26
27 error: expected identifier, found keyword `Self`
28   --> $DIR/self_type_keyword.rs:23:15
29    |
30 LL |         Foo { Self } => (),
31    |               ^^^^ expected identifier, found keyword
32
33 error: expected identifier, found keyword `Self`
34   --> $DIR/self_type_keyword.rs:29:26
35    |
36 LL |     extern crate core as Self;
37    |                          ^^^^ expected identifier, found keyword
38
39 error: expected identifier, found keyword `Self`
40   --> $DIR/self_type_keyword.rs:34:32
41    |
42 LL |     use std::option::Option as Self;
43    |                                ^^^^ expected identifier, found keyword
44
45 error: expected identifier, found keyword `Self`
46   --> $DIR/self_type_keyword.rs:39:11
47    |
48 LL |     trait Self {}
49    |           ^^^^ expected identifier, found keyword
50
51 error: lifetimes cannot use keyword names
52   --> $DIR/self_type_keyword.rs:6:12
53    |
54 LL | struct Bar<'Self>;
55    |            ^^^^^
56
57 error: cannot find macro `Self` in this scope
58   --> $DIR/self_type_keyword.rs:21:9
59    |
60 LL |         Self!() => (),
61    |         ^^^^
62
63 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
64   --> $DIR/self_type_keyword.rs:16:13
65    |
66 LL |         mut Self => (),
67    |             ^^^^ not found in this scope
68 help: possible candidate is found in another module, you can import it into scope
69    |
70 LL | use foo::Self;
71    |
72
73 error[E0392]: parameter `'Self` is never used
74   --> $DIR/self_type_keyword.rs:6:12
75    |
76 LL | struct Bar<'Self>;
77    |            ^^^^^ unused parameter
78    |
79    = help: consider removing `'Self`, referring to it in a field, or using a marker such as `std::marker::PhantomData`
80
81 error: aborting due to 12 previous errors
82
83 Some errors have detailed explanations: E0392, E0531.
84 For more information about an error, try `rustc --explain E0392`.