]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-path-self.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / structs / struct-path-self.stderr
1 error[E0071]: expected struct, variant or union type, found type parameter `Self`
2   --> $DIR/struct-path-self.rs:5:17
3    |
4 LL |         let s = Self {};
5    |                 ^^^^ not a struct
6
7 error[E0109]: type arguments are not allowed for this type
8   --> $DIR/struct-path-self.rs:7:24
9    |
10 LL |         let z = Self::<u8> {};
11    |                        ^^ type argument not allowed
12
13 error[E0071]: expected struct, variant or union type, found type parameter `Self`
14   --> $DIR/struct-path-self.rs:7:17
15    |
16 LL |         let z = Self::<u8> {};
17    |                 ^^^^^^^^^^ not a struct
18
19 error[E0071]: expected struct, variant or union type, found type parameter `Self`
20   --> $DIR/struct-path-self.rs:11:13
21    |
22 LL |             Self { .. } => {}
23    |             ^^^^ not a struct
24
25 error[E0109]: type arguments are not allowed for this type
26   --> $DIR/struct-path-self.rs:20:24
27    |
28 LL |         let z = Self::<u8> {};
29    |                        ^^ type argument not allowed
30
31 error[E0109]: type arguments are not allowed for this type
32   --> $DIR/struct-path-self.rs:30:24
33    |
34 LL |         let z = Self::<u8> {};
35    |                        ^^ type argument not allowed
36
37 error: aborting due to 6 previous errors
38
39 Some errors have detailed explanations: E0071, E0109.
40 For more information about an error, try `rustc --explain E0071`.