rust/src/test/ui/parser/unclosed-delimiter-in-dep.stderr

26 lines
783 B
Plaintext
Raw Normal View History

error: mismatched closing delimiter: `}`
--> $DIR/unclosed_delim_mod.rs:7:1
2019-03-03 18:59:24 -06:00
|
LL | pub fn new() -> Result<Value, ()> {
| - closing delimiter possibly meant for this
2019-03-03 18:59:24 -06:00
LL | Ok(Value {
| - unclosed delimiter
2019-03-03 18:59:24 -06:00
LL | }
LL | }
| ^ 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`
| |
| 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`.