diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-11 23:17:38 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-13 18:41:18 +0000 |
| commit | e20f6ff1dcfaa90aad841f8d36734d1e70d2e065 (patch) | |
| tree | 5bb97125442adc56e6c847a3dee13983940457b1 /tests/ui/error-codes | |
| parent | 0b439b119b8d49450bddbbea317afeb0d4166f70 (diff) | |
| download | rust-e20f6ff1dcfaa90aad841f8d36734d1e70d2e065.tar.gz rust-e20f6ff1dcfaa90aad841f8d36734d1e70d2e065.zip | |
Tighter spans for bad inherent impl types
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0116.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/error-codes/E0118.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/error-codes/E0390.stderr | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/ui/error-codes/E0116.stderr b/tests/ui/error-codes/E0116.stderr index a5ceeb4a55d..8a027686760 100644 --- a/tests/ui/error-codes/E0116.stderr +++ b/tests/ui/error-codes/E0116.stderr @@ -2,7 +2,7 @@ error[E0116]: cannot define inherent `impl` for a type outside of the crate wher --> $DIR/E0116.rs:1:1 | LL | impl Vec<u8> {} - | ^^^^^^^^^^^^^^^ impl for type defined outside of crate. + | ^^^^^^^^^^^^ impl for type defined outside of crate. | = note: define and implement a trait or new type instead diff --git a/tests/ui/error-codes/E0118.stderr b/tests/ui/error-codes/E0118.stderr index 8c6fa7947a8..442f8a4f870 100644 --- a/tests/ui/error-codes/E0118.stderr +++ b/tests/ui/error-codes/E0118.stderr @@ -1,8 +1,8 @@ error[E0118]: no nominal type found for inherent implementation - --> $DIR/E0118.rs:1:9 + --> $DIR/E0118.rs:1:1 | LL | impl<T> T { - | ^ impl requires a nominal type + | ^^^^^^^^^ impl requires a nominal type | = note: either implement a trait on it or create a newtype to wrap it instead diff --git a/tests/ui/error-codes/E0390.stderr b/tests/ui/error-codes/E0390.stderr index 0e5a9ca762b..ec4b5758c5b 100644 --- a/tests/ui/error-codes/E0390.stderr +++ b/tests/ui/error-codes/E0390.stderr @@ -1,16 +1,16 @@ error[E0390]: cannot define inherent `impl` for primitive types - --> $DIR/E0390.rs:5:6 + --> $DIR/E0390.rs:5:1 | LL | impl *mut Foo {} - | ^^^^^^^^ + | ^^^^^^^^^^^^^ | = help: consider using an extension trait instead error[E0390]: cannot define inherent `impl` for primitive types - --> $DIR/E0390.rs:7:6 + --> $DIR/E0390.rs:7:1 | LL | impl fn(Foo) {} - | ^^^^^^^ + | ^^^^^^^^^^^^ | = help: consider using an extension trait instead |
