diff --git a/tracing-attributes/tests/ui/fail/async_instrument.stderr b/tracing-attributes/tests/ui/fail/async_instrument.stderr index 06dd34ba9e..fd10a91888 100644 --- a/tracing-attributes/tests/ui/fail/async_instrument.stderr +++ b/tracing-attributes/tests/ui/fail/async_instrument.stderr @@ -14,15 +14,17 @@ error[E0308]: mismatched types --> tests/ui/fail/async_instrument.rs:10:5 | 10 | "" - | ^^- help: try using a conversion method: `.to_string()` - | | - | expected `String`, found `&str` + | ^^ expected `String`, found `&str` | note: return type inferred to be `String` here --> tests/ui/fail/async_instrument.rs:9:31 | -9 | async fn simple_mismatch() -> String { + 9 | async fn simple_mismatch() -> String { | ^^^^^^ +help: try using a conversion method + | +10 | "".to_string() + | ++++++++++++ error[E0277]: `(&str,)` doesn't implement `std::fmt::Display` --> tests/ui/fail/async_instrument.rs:14:57 @@ -76,15 +78,17 @@ error[E0308]: mismatched types --> tests/ui/fail/async_instrument.rs:35:16 | 35 | return ""; - | ^^- help: try using a conversion method: `.to_string()` - | | - | expected `String`, found `&str` + | ^^ expected `String`, found `&str` | note: return type inferred to be `String` here --> tests/ui/fail/async_instrument.rs:33:28 | 33 | async fn early_return() -> String { | ^^^^^^ +help: try using a conversion method + | +35 | return "".to_string(); + | ++++++++++++ error[E0308]: mismatched types --> tests/ui/fail/async_instrument.rs:40:1