Skip to content

Commit 804a940

Browse files
committed
bless tests
yay, I fixed the bug/missing feature :')
1 parent 3839f06 commit 804a940

File tree

2 files changed

+1
-61
lines changed

2 files changed

+1
-61
lines changed

tests/ui/cast/ptr-to-trait-obj-wrap.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ check-pass
12
#![allow(unused)]
23

34
trait A {}
@@ -7,14 +8,10 @@ struct X<T: ?Sized>(T);
78

89
fn unwrap(a: *const W<dyn A>) -> *const dyn A {
910
a as _
10-
//~^ error
11-
//~| error
1211
}
1312

1413
fn unwrap_nested(a: *const W<W<dyn A>>) -> *const W<dyn A> {
1514
a as _
16-
//~^ error
17-
//~| error
1815
}
1916

2017
fn rewrap(a: *const W<dyn A>) -> *const X<dyn A> {

tests/ui/cast/ptr-to-trait-obj-wrap.stderr

-57
This file was deleted.

0 commit comments

Comments
 (0)