2020-01-03 07:40:15 -06:00
|
|
|
error: mismatched closing delimiter: `}`
|
2019-09-08 12:06:49 -05:00
|
|
|
--> $DIR/unclosed_delim_mod.rs:7:1
|
2019-03-03 18:59:24 -06:00
|
|
|
|
|
|
|
|
LL | pub fn new() -> Result<Value, ()> {
|
2020-01-03 07:40:15 -06:00
|
|
|
| - closing delimiter possibly meant for this
|
2019-03-03 18:59:24 -06:00
|
|
|
LL | Ok(Value {
|
2020-01-03 07:40:15 -06:00
|
|
|
| - unclosed delimiter
|
2019-03-03 18:59:24 -06:00
|
|
|
LL | }
|
|
|
|
LL | }
|
2020-01-03 07:40:15 -06:00
|
|
|
| ^ mismatched closing delimiter
|
2019-03-03 18:59:24 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/unclosed-delimiter-in-dep.rs:4:20
|
|
|
|
|
|
|
|
|
LL | let _: usize = unclosed_delim_mod::new();
|
2021-01-28 10:01:36 -06:00
|
|
|
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found enum `Result`
|
2019-11-18 23:00:24 -06:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-03-03 18:59:24 -06:00
|
|
|
|
|
|
|
|
= note: expected type `usize`
|
2021-01-28 10:01:36 -06:00
|
|
|
found enum `Result<Value, ()>`
|
2019-03-03 18:59:24 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|