]> git.lizzy.rs Git - rust.git/blob - tests/ui/diagnostic-width/long-E0308.stderr
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / diagnostic-width / long-E0308.stderr
1 error[E0308]: mismatched types
2   --> $DIR/long-E0308.rs:44:9
3    |
4 LL |        let x: Atype<
5    |  _____________-
6 LL | |        Btype<
7 LL | |          Ctype<
8 LL | |            Atype<
9 ...  |
10 LL | |        i32
11 LL | |      > = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok...
12    | | _____-___^
13    | ||_____|
14    |  |     expected due to this
15 LL |  |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok...
16 LL |  |             Ok("")
17 LL |  |         ))))))))))))))))))))))))))))))
18 LL |  |     ))))))))))))))))))))))))))))));
19    |  |__________________________________^ expected struct `Atype`, found enum `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
26 error[E0308]: mismatched types
27   --> $DIR/long-E0308.rs:57:26
28    |
29 LL |       ))))))))))))))))) == Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O...
30    |  __________________________^
31 LL | |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(...
32 LL | |             Ok(Ok(Ok(Ok(Ok(Ok(Ok("")))))))
33 LL | |         ))))))))))))))))))))))))))))))
34 LL | |     ))))))))))))))))))))))));
35    | |____________________________^ expected enum `Option`, found enum `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
42 error[E0308]: mismatched types
43   --> $DIR/long-E0308.rs:88:9
44    |
45 LL |       let x: Atype<
46    |  ____________-
47 LL | |       Btype<
48 LL | |         Ctype<
49 LL | |           Atype<
50 ...  |
51 LL | |       i32
52 LL | |     > = ();
53    | |     -   ^^ expected struct `Atype`, 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
61 error[E0308]: mismatched types
62   --> $DIR/long-E0308.rs:91:17
63    |
64 LL |       let _: () = Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(O...
65    |  ____________--___^
66    | |            |
67    | |            expected due to this
68 LL | |         Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(Ok(...
69 LL | |             Ok(Ok(Ok(Ok(Ok(Ok(Ok("")))))))
70 LL | |         ))))))))))))))))))))))))))))))
71 LL | |     ))))))))))))))))))))))));
72    | |____________________________^ expected `()`, found enum `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
78 error: aborting due to 4 previous errors
79
80 For more information about this error, try `rustc --explain E0308`.