fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
829 B25 linesraw
1error: mismatched closing delimiter: `}`
2  --> $DIR/unclosed_delim_mod.rs:7:1
3   |
4LL | pub fn new() -> Result<Value, ()> {
5   |                                   - closing delimiter possibly meant for this
6LL |     Ok(Value {
7   |       - unclosed delimiter
8LL |     }
9LL | }
10   | ^ mismatched closing delimiter
11
12error[E0308]: mismatched types
13  --> $DIR/unclosed-delimiter-in-dep.rs:4:20
14   |
15LL |     let _: usize = unclosed_delim_mod::new();
16   |            -----   ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found enum `std::result::Result`
17   |            |
18   |            expected due to this
19   |
20   = note: expected type `usize`
21              found enum `std::result::Result<unclosed_delim_mod::Value, ()>`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0308`.