diff options
| author | Lukas Markeffsky <@> | 2023-01-01 18:48:14 +0100 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2023-01-01 18:48:57 +0100 |
| commit | 035d854947d5899388f77f6d00fc488caad86b5c (patch) | |
| tree | ce62fc0e60134b5e6a45712f90d3a2726f214096 /src/test/ui/error-codes | |
| parent | bb6e76df06dcbdb96e634eb28a49f161d70ab844 (diff) | |
| download | rust-035d854947d5899388f77f6d00fc488caad86b5c.tar.gz rust-035d854947d5899388f77f6d00fc488caad86b5c.zip | |
reduce spans for `unsafe impl` errors
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0199.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0200.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0199.stderr b/src/test/ui/error-codes/E0199.stderr index 99d808c0d4b..68c308b15cc 100644 --- a/src/test/ui/error-codes/E0199.stderr +++ b/src/test/ui/error-codes/E0199.stderr @@ -2,7 +2,7 @@ error[E0199]: implementing the trait `Bar` is not unsafe --> $DIR/E0199.rs:6:1 | LL | unsafe impl Bar for Foo { } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^ | help: remove `unsafe` from this trait implementation | diff --git a/src/test/ui/error-codes/E0200.stderr b/src/test/ui/error-codes/E0200.stderr index 1fd86aecee1..c70a2d4f3d1 100644 --- a/src/test/ui/error-codes/E0200.stderr +++ b/src/test/ui/error-codes/E0200.stderr @@ -2,7 +2,7 @@ error[E0200]: the trait `Bar` requires an `unsafe impl` declaration --> $DIR/E0200.rs:5:1 | LL | impl Bar for Foo { } - | ^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^ | = note: the trait `Bar` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword help: add `unsafe` to this trait implementation |
