fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
822 B25 linesraw
1error: incorrect close delimiter: `}`
2  --> $DIR/unclosed_delim_mod.rs:7:1
3   |
4LL | pub fn new() -> Result<Value, ()> {
5   |                                   - close delimiter possibly meant for this
6LL |     Ok(Value {
7   |       - un-closed delimiter
8LL |     }
9LL | }
10   | ^ incorrect close 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`.