diff options
| author | jyn <github@jyn.dev> | 2023-12-07 22:54:41 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-12-07 23:00:46 -0500 |
| commit | eb53721a34d1d910b900aa753e0a00dc72ef41ac (patch) | |
| tree | 23eb3ecec1bfebf300a23a7619d71037634e4a53 /tests/ui/unsafe/unsafe-trait-impl.rs | |
| parent | d6fa38a9b2426487e010a6c16862132f89755e41 (diff) | |
| download | rust-eb53721a34d1d910b900aa753e0a00dc72ef41ac.tar.gz rust-eb53721a34d1d910b900aa753e0a00dc72ef41ac.zip | |
recurse into refs when comparing tys for diagnostics
Diffstat (limited to 'tests/ui/unsafe/unsafe-trait-impl.rs')
| -rw-r--r-- | tests/ui/unsafe/unsafe-trait-impl.rs | 4 |
1 files changed, 2 insertions, 2 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() { } |
