diff options
| author | Obei Sideg <obei.sideg@gmail.com> | 2023-09-13 20:42:56 +0300 |
|---|---|---|
| committer | Obei Sideg <obei.sideg@gmail.com> | 2023-09-20 10:56:44 +0300 |
| commit | 77e205a113e4843d1b84467afe8ea74a36ed9424 (patch) | |
| tree | ea4c4dc5eea484c11e01a718d06d31246d4464b2 /tests/ui/error-codes | |
| parent | df99bc151a5dcf14aa1a0768a9f370e343aac466 (diff) | |
| download | rust-77e205a113e4843d1b84467afe8ea74a36ed9424.tar.gz rust-77e205a113e4843d1b84467afe8ea74a36ed9424.zip | |
Migrate `rustc_hir_analysis` to session diagnostic
Part 5: Finishing `coherence/builtin.rs` file
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0374.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/error-codes/E0377.stderr | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/ui/error-codes/E0374.stderr b/tests/ui/error-codes/E0374.stderr index 68e15e6f8fe..a7792043067 100644 --- a/tests/ui/error-codes/E0374.stderr +++ b/tests/ui/error-codes/E0374.stderr @@ -1,8 +1,10 @@ -error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced, none found +error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures --> $DIR/E0374.rs:8:1 | LL | impl<T, U> CoerceUnsized<Foo<U>> for Foo<T> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: expected a single field to be coerced, none found error: aborting due to previous error diff --git a/tests/ui/error-codes/E0377.stderr b/tests/ui/error-codes/E0377.stderr index bf7d8c8d39d..664e499ec23 100644 --- a/tests/ui/error-codes/E0377.stderr +++ b/tests/ui/error-codes/E0377.stderr @@ -1,8 +1,10 @@ -error[E0377]: the trait `CoerceUnsized` may only be implemented for a coercion between structures with the same definition; expected `Foo`, found `Bar` +error[E0377]: the trait `CoerceUnsized` may only be implemented for a coercion between structures --> $DIR/E0377.rs:12:1 | LL | impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: expected coercion between the same definition; expected `Foo`, found `Bar` error: aborting due to previous error |
