about summary refs log tree commit diff
path: root/src/test/ui/structs/struct-path-self.stderr
blob: cda6b7a533f65e2ad204cb81587f48c9107b6bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error[E0071]: expected struct, variant or union type, found Self
  --> $DIR/struct-path-self.rs:5:17
   |
LL |         let s = Self {};
   |                 ^^^^ not a struct

error[E0109]: type arguments are not allowed on this entity
  --> $DIR/struct-path-self.rs:7:24
   |
LL |         let z = Self::<u8> {};
   |                        ^^ type argument not allowed

error[E0071]: expected struct, variant or union type, found Self
  --> $DIR/struct-path-self.rs:7:17
   |
LL |         let z = Self::<u8> {};
   |                 ^^^^^^^^^^ not a struct

error[E0071]: expected struct, variant or union type, found Self
  --> $DIR/struct-path-self.rs:11:13
   |
LL |             Self { .. } => {}
   |             ^^^^ not a struct

error[E0109]: type arguments are not allowed on this entity
  --> $DIR/struct-path-self.rs:20:24
   |
LL |         let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
   |                        ^^ type argument not allowed

error[E0109]: type arguments are not allowed on this entity
  --> $DIR/struct-path-self.rs:30:24
   |
LL |         let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
   |                        ^^ type argument not allowed

error: aborting due to 6 previous errors

Some errors occurred: E0071, E0109.
For more information about an error, try `rustc --explain E0071`.