]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-type-params-name-repr.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / generics / generic-type-params-name-repr.stderr
1 error[E0308]: mismatched types
2   --> $DIR/generic-type-params-name-repr.rs:13:25
3    |
4 LL |     let _: Foo<isize> = ();
5    |            ----------   ^^ expected struct `Foo`, found `()`
6    |            |
7    |            expected due to this
8    |
9    = note: expected struct `Foo<isize>`
10            found unit type `()`
11
12 error[E0308]: mismatched types
13   --> $DIR/generic-type-params-name-repr.rs:20:31
14    |
15 LL |     let _: Foo<isize, B, C> = ();
16    |            ----------------   ^^ expected struct `Foo`, found `()`
17    |            |
18    |            expected due to this
19    |
20    = note: expected struct `Foo<isize>`
21            found unit type `()`
22
23 error[E0308]: mismatched types
24   --> $DIR/generic-type-params-name-repr.rs:27:37
25    |
26 LL |     let _: HashMap<String, isize> = ();
27    |            ----------------------   ^^ expected struct `HashMap`, found `()`
28    |            |
29    |            expected due to this
30    |
31    = note: expected struct `HashMap<String, isize>`
32            found unit type `()`
33
34 error[E0308]: mismatched types
35   --> $DIR/generic-type-params-name-repr.rs:32:51
36    |
37 LL |     let _: HashMap<String, isize, Hash<String>> = ();
38    |            ------------------------------------   ^^ expected struct `HashMap`, found `()`
39    |            |
40    |            expected due to this
41    |
42    = note: expected struct `HashMap<String, isize>`
43            found unit type `()`
44
45 error[E0308]: mismatched types
46   --> $DIR/generic-type-params-name-repr.rs:39:31
47    |
48 LL |     let _: Foo<A, isize, C> = ();
49    |            ----------------   ^^ expected struct `Foo`, found `()`
50    |            |
51    |            expected due to this
52    |
53    = note: expected struct `Foo<A, isize>`
54            found unit type `()`
55
56 error[E0308]: mismatched types
57   --> $DIR/generic-type-params-name-repr.rs:46:27
58    |
59 LL |     let _: Foo<A, B, C> = ();
60    |            ------------   ^^ expected struct `Foo`, found `()`
61    |            |
62    |            expected due to this
63    |
64    = note: expected struct `Foo`
65            found unit type `()`
66
67 error: aborting due to 6 previous errors
68
69 For more information about this error, try `rustc --explain E0308`.