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