Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update compile errors for newer Rust
  • Loading branch information
Twey committed Jul 7, 2025
commit b58144eb61510eef498258d9a53ecbd34b985f91
28 changes: 13 additions & 15 deletions tests-build/tests/fail/macros_type_mismatch.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ error[E0308]: mismatched types
|
= note: expected enum `Result<(), ()>`
found unit type `()`
help: try adding an expression at the end of the block
|
23 ~ Ok(());;
24 + Ok(())
help: try wrapping the expression in a variant of `Result`
|
23 | Ok(Ok(());)
| +++ +
23 | Err(Ok(());)
| ++++ +

error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> tests/fail/macros_type_mismatch.rs:40:9
Expand All @@ -68,14 +69,10 @@ error[E0308]: mismatched types
|
= note: expected enum `Option<()>`
found unit type `()`
help: try adding an expression at the end of the block
|
40 ~ None?;;
41 + None
|
40 ~ None?;;
41 + Some(())
help: try wrapping the expression in `Some`
|
40 | Some(None?;)
| +++++ +

error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> tests/fail/macros_type_mismatch.rs:57:11
Expand All @@ -96,11 +93,12 @@ error[E0308]: mismatched types
|
= note: expected enum `Result<(), ()>`
found unit type `()`
help: try adding an expression at the end of the block
|
57 ~ Ok(())?;;
58 + Ok(())
help: try wrapping the expression in a variant of `Result`
|
57 | Ok(Ok(())?;)
| +++ +
57 | Err(Ok(())?;)
| ++++ +

error[E0308]: mismatched types
--> tests/fail/macros_type_mismatch.rs:66:5
Expand Down