2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-04-18 18:31:05 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(transmutability)]
|
|
|
|
use std::mem::BikeshedIntrinsicFrom;
|
|
|
|
|
|
|
|
pub fn is_maybe_transmutable<Src, Dst>()
|
|
|
|
where
|
2024-02-26 10:49:25 -06:00
|
|
|
Dst: BikeshedIntrinsicFrom<Src>,
|
2023-04-18 18:31:05 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// The `T` here should not have any effect on checking
|
|
|
|
// if transmutability is allowed or not.
|
|
|
|
fn function_with_generic<T>() {
|
|
|
|
is_maybe_transmutable::<(), ()>();
|
|
|
|
}
|