@@ -15,27 +15,27 @@ use std::mem;
15
15
unsafe fn foo ( ) -> ( isize , * const ( ) , Option < fn ( ) > ) {
16
16
let i = mem:: transmute ( bar) ;
17
17
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
18
- //~^^ ERROR was previously accepted
18
+ //~^^ WARNING was previously accepted
19
19
20
20
let p = mem:: transmute ( foo) ;
21
21
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
22
- //~^^ ERROR was previously accepted
22
+ //~^^ WARNING was previously accepted
23
23
24
24
let of = mem:: transmute ( main) ;
25
25
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
26
- //~^^ ERROR was previously accepted
26
+ //~^^ WARNING was previously accepted
27
27
28
28
( i, p, of)
29
29
}
30
30
31
31
unsafe fn bar ( ) {
32
32
mem:: transmute :: < _ , * mut ( ) > ( foo) ;
33
33
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
34
- //~^^ ERROR was previously accepted
34
+ //~^^ WARNING was previously accepted
35
35
36
36
mem:: transmute :: < _ , fn ( ) > ( bar) ;
37
37
//~^ ERROR is now zero-sized and has to be cast to a pointer before transmuting
38
- //~^^ ERROR was previously accepted
38
+ //~^^ WARNING was previously accepted
39
39
40
40
// No error if a coercion would otherwise occur.
41
41
mem:: transmute :: < fn ( ) , usize > ( main) ;
0 commit comments