fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.2 KiB80 linesraw
1error[E0308]: mismatched types
2  --> $DIR/long-E0308.rs:44:9
3   |
4LL |        let x: Atype<
5   |  _____________-
6LL | |        Btype<
7LL | |          Ctype<
8LL | |            Atype<
9...  |
10LL | |        i32
11LL | |      > = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok...
12   | | _____-___^
13   | ||_____|
14   |  |     expected due to this
15LL |  |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok...
16LL |  |             Ok("")
17LL |  |         ))))))))))))))))))))))))))))))
18LL |  |     ))))))))))))))))))))))))))))));
19   |  |__________________________________^ expected `Atype<Btype<..., ...>, ...>`, found `Result<Result<..., ...>, ...>`
20   |
21   = note: expected struct `Atype<Btype<..., ...>, ...>`
22           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
23                found enum `Result<Result<..., ...>, ...>`
24           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
25
26error[E0308]: mismatched types
27  --> $DIR/long-E0308.rs:57:26
28   |
29LL |       ))))))))))))))))) == Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O...
30   |  __________________________^
31LL | |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(...
32LL | |             Ok(Ok(Ok(Ok(Ok(Ok(Ok("")))))))
33LL | |         ))))))))))))))))))))))))))))))
34LL | |     ))))))))))))))))))))))));
35   | |____________________________^ expected `Option<Result<..., ...>>`, found `Result<Result<..., ...>, ...>`
36   |
37   = note: expected enum `Option<Result<..., ...>>`
38           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
39              found enum `Result<Result<..., ...>, ...>`
40           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
41
42error[E0308]: mismatched types
43  --> $DIR/long-E0308.rs:88:9
44   |
45LL |       let x: Atype<
46   |  ____________-
47LL | |       Btype<
48LL | |         Ctype<
49LL | |           Atype<
50...  |
51LL | |       i32
52LL | |     > = ();
53   | |     -   ^^ expected `Atype<Btype<..., ...>, ...>`, found `()`
54   | |_____|
55   |       expected due to this
56   |
57   = note: expected struct `Atype<Btype<..., ...>, ...>`
58           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
59           found unit type `()`
60
61error[E0308]: mismatched types
62  --> $DIR/long-E0308.rs:91:17
63   |
64LL |       let _: () = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O...
65   |  ____________--___^
66   | |            |
67   | |            expected due to this
68LL | |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(...
69LL | |             Ok(Ok(Ok(Ok(Ok(Ok(Ok("")))))))
70LL | |         ))))))))))))))))))))))))))))))
71LL | |     ))))))))))))))))))))))));
72   | |____________________________^ expected `()`, found `Result<Result<..., ...>, ...>`
73   |
74   = note: expected unit type `()`
75                   found enum `Result<Result<..., ...>, ...>`
76           the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/long-E0308/long-E0308.long-type-hash.txt'
77
78error: aborting due to 4 previous errors
79
80For more information about this error, try `rustc --explain E0308`.