about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-04 19:50:27 +0200
committerGitHub <noreply@github.com>2025-06-04 19:50:27 +0200
commite0815883cf5b3e749ce22a99f031a02e60db4f62 (patch)
tree0f8106dc19dc89e76b5cc9ed260b41ea78cffb24 /tests
parent8375ab01b781b7cece564774df78785b1a432e6e (diff)
parentda2e33b4065c3356260a0c1671a945a3bf0a2f35 (diff)
downloadrust-e0815883cf5b3e749ce22a99f031a02e60db4f62.tar.gz
rust-e0815883cf5b3e749ce22a99f031a02e60db4f62.zip
Rollup merge of #142024 - m-ou-se:what-tail-expression, r=petrochenkov
Don't refer to 'this tail expression' in expansion.

The user has no clue what the compiler is talking about when it says "this tail expression". It is an implementation detail of the macro that it uses a block with tail expression.
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/never_type/feature-gate-never_type_fallback.stderr6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/never_type/feature-gate-never_type_fallback.stderr b/tests/ui/never_type/feature-gate-never_type_fallback.stderr
index cbb670ea708..8dbd43e121b 100644
--- a/tests/ui/never_type/feature-gate-never_type_fallback.stderr
+++ b/tests/ui/never_type/feature-gate-never_type_fallback.stderr
@@ -2,10 +2,8 @@ error[E0277]: the trait bound `(): T` is not satisfied
   --> $DIR/feature-gate-never_type_fallback.rs:10:9
    |
 LL |     foo(panic!())
-   |     --- ^^^^^^^^
-   |     |   |
-   |     |   the trait `T` is not implemented for `()`
-   |     |   this tail expression is of type `()`
+   |     --- ^^^^^^^^ the trait `T` is not implemented for `()`
+   |     |
    |     required by a bound introduced by this call
    |
 help: this trait has no implementations, consider adding one