11error[E0308]: mismatched types
2- --> tests/ui/async_instrument.rs:5:5
2+ --> tests/ui/fail/ async_instrument.rs:5:5
33 |
445 | ""
55 | ^^ expected `()`, found `&str`
66 |
77note: return type inferred to be `()` here
8- --> tests/ui/async_instrument.rs:4:10
8+ --> tests/ui/fail/ async_instrument.rs:4:10
99 |
10104 | async fn unit() {
1111 | ^^^^
1212
1313error[E0308]: mismatched types
14- --> tests/ui/async_instrument.rs:10:5
14+ --> tests/ui/fail/ async_instrument.rs:10:5
1515 |
161610 | ""
1717 | ^^- help: try using a conversion method: `.to_string()`
1818 | |
1919 | expected `String`, found `&str`
2020 |
2121note: return type inferred to be `String` here
22- --> tests/ui/async_instrument.rs:9:31
22+ --> tests/ui/fail/ async_instrument.rs:9:31
2323 |
24249 | async fn simple_mismatch() -> String {
2525 | ^^^^^^
2626
2727error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
28- --> tests/ui/async_instrument.rs:14:57
28+ --> tests/ui/fail/ async_instrument.rs:14:57
2929 |
303014 | async fn opaque_unsatisfied() -> impl std::fmt::Display {
3131 | _________________________________________________________-
@@ -40,7 +40,7 @@ error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
4040 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
4141
4242error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
43- --> tests/ui/async_instrument.rs:14:34
43+ --> tests/ui/fail/ async_instrument.rs:14:34
4444 |
454514 | async fn opaque_unsatisfied() -> impl std::fmt::Display {
4646 | ^^^^^^^^^^^^^^^^^^^^^^ `(&str,)` cannot be formatted with the default formatter
@@ -49,15 +49,15 @@ error[E0277]: `(&str,)` doesn't implement `std::fmt::Display`
4949 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
5050
5151error[E0308]: mismatched types
52- --> tests/ui/async_instrument.rs:22:5
52+ --> tests/ui/fail/ async_instrument.rs:22:5
5353 |
545422 | ""
5555 | ^^ expected `Wrapper<_>`, found `&str`
5656 |
5757 = note: expected struct `Wrapper<_>`
5858 found reference `&'static str`
5959note: return type inferred to be `Wrapper<_>` here
60- --> tests/ui/async_instrument.rs:21:36
60+ --> tests/ui/fail/ async_instrument.rs:21:36
6161 |
626221 | async fn mismatch_with_opaque() -> Wrapper<impl std::fmt::Display> {
6363 | ^^^^^^^
@@ -67,33 +67,33 @@ help: try wrapping the expression in `Wrapper`
6767 | ++++++++ +
6868
6969error[E0308]: mismatched types
70- --> tests/ui/async_instrument.rs:28:16
70+ --> tests/ui/fail/ async_instrument.rs:28:16
7171 |
727228 | return "";
7373 | ^^ expected `()`, found `&str`
7474 |
7575note: return type inferred to be `()` here
76- --> tests/ui/async_instrument.rs:26:10
76+ --> tests/ui/fail/ async_instrument.rs:26:10
7777 |
787826 | async fn early_return_unit() {
7979 | ^^^^^^^^^^^^^^^^^
8080
8181error[E0308]: mismatched types
82- --> tests/ui/async_instrument.rs:35:16
82+ --> tests/ui/fail/ async_instrument.rs:35:16
8383 |
848435 | return "";
8585 | ^^- help: try using a conversion method: `.to_string()`
8686 | |
8787 | expected `String`, found `&str`
8888 |
8989note: return type inferred to be `String` here
90- --> tests/ui/async_instrument.rs:33:28
90+ --> tests/ui/fail/ async_instrument.rs:33:28
9191 |
929233 | async fn early_return() -> String {
9393 | ^^^^^^
9494
9595error[E0308]: mismatched types
96- --> tests/ui/async_instrument.rs:40:1
96+ --> tests/ui/fail/ async_instrument.rs:40:1
9797 |
989840 | #[tracing::instrument]
9999 | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `()`
0 commit comments