Add #[allow(dead_code)]
in some tests
This commit is contained in:
parent
0359331869
commit
9a877b80fe
@ -1 +1 @@
|
|||||||
c5cbf7852a7692c7c51df64c09a59e7838b55202
|
4e880f8cbc191374ce7db335962489f41d6d4e3e
|
||||||
|
@ -4,6 +4,7 @@ fn main() {
|
|||||||
trait T { }
|
trait T { }
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct S {
|
struct S {
|
||||||
|
#[allow(dead_code)]
|
||||||
x: * mut dyn T
|
x: * mut dyn T
|
||||||
}
|
}
|
||||||
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling vtable pointer in wide pointer
|
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling vtable pointer in wide pointer
|
||||||
|
@ -6,6 +6,7 @@ trait T {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct S {
|
struct S {
|
||||||
|
#[allow(dead_code)]
|
||||||
s: isize,
|
s: isize,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user