rust/tests/ui/parser/unclosed-delimiter-in-dep.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
789 B
Plaintext
Raw Normal View History

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