summaryrefslogtreecommitdiff
path: root/tests/ui/unsafe
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2023-12-07 22:54:41 -0500
committerjyn <github@jyn.dev>2023-12-07 23:00:46 -0500
commiteb53721a34d1d910b900aa753e0a00dc72ef41ac (patch)
tree23eb3ecec1bfebf300a23a7619d71037634e4a53 /tests/ui/unsafe
parentd6fa38a9b2426487e010a6c16862132f89755e41 (diff)
recurse into refs when comparing tys for diagnostics
Diffstat (limited to 'tests/ui/unsafe')
-rw-r--r--tests/ui/unsafe/unsafe-trait-impl.rs4
-rw-r--r--tests/ui/unsafe/unsafe-trait-impl.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/unsafe/unsafe-trait-impl.rs b/tests/ui/unsafe/unsafe-trait-impl.rs
index 1fc84ca0256..9fd9ff65288 100644
--- a/tests/ui/unsafe/unsafe-trait-impl.rs
+++ b/tests/ui/unsafe/unsafe-trait-impl.rs
@@ -7,8 +7,8 @@ trait Foo {
impl Foo for u32 {
fn len(&self) -> u32 { *self }
//~^ ERROR method `len` has an incompatible type for trait
- //~| expected signature `unsafe fn(&u32) -> _`
- //~| found signature `fn(&u32) -> _`
+ //~| expected signature `unsafe fn(&_) -> _`
+ //~| found signature `fn(&_) -> _`
}
fn main() { }
diff --git a/tests/ui/unsafe/unsafe-trait-impl.stderr b/tests/ui/unsafe/unsafe-trait-impl.stderr
index db5200e1c20..5888b674d4f 100644
--- a/tests/ui/unsafe/unsafe-trait-impl.stderr
+++ b/tests/ui/unsafe/unsafe-trait-impl.stderr
@@ -9,8 +9,8 @@ note: type in trait
|
LL | unsafe fn len(&self) -> u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = note: expected signature `unsafe fn(&u32) -> _`
- found signature `fn(&u32) -> _`
+ = note: expected signature `unsafe fn(&_) -> _`
+ found signature `fn(&_) -> _`
error: aborting due to 1 previous error