Skip to content

Commit

Permalink
Update ui test suite to nightly-2023-11-20
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 20, 2023
1 parent 5f04108 commit b4a3886
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/ui/must-use.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
error: unused return value of `Interface::f` that must be used
error: unused pinned boxed `Future` trait object that must be used
--> tests/ui/must-use.rs:18:5
|
18 | Thing.f();
| ^^^^^^^^^
|
= note: futures do nothing unless you `.await` or poll them
note: the lint level is defined here
--> tests/ui/must-use.rs:1:9
|
1 | #![deny(unused_must_use)]
| ^^^^^^^^^^^^^^^

error: unused return value of `Interface::f` that must be used
--> tests/ui/must-use.rs:18:5
|
18 | Thing.f();
| ^^^^^^^^^
|
help: use `let _ = ...` to ignore the resulting value
|
18 | let _ = Thing.f();
Expand Down

0 comments on commit b4a3886

Please sign in to comment.