Most of these changes either add revision names that were apparently missing, or explicitly mark a revision name as currently unused.
16 lines
349 B
Rust
16 lines
349 B
Rust
//@ check-fail
|
|
|
|
#![feature(transmutability)]
|
|
mod assert {
|
|
use std::mem::{Assume, BikeshedIntrinsicFrom};
|
|
|
|
pub fn is_transmutable<Src, Dst>()
|
|
where
|
|
Dst: BikeshedIntrinsicFrom<Src, { Assume::SAFETY }>
|
|
{}
|
|
}
|
|
|
|
fn main() {
|
|
assert::is_transmutable::<&'static mut bool, &'static mut u8>() //~ ERROR cannot be safely transmuted
|
|
}
|