about summary refs log tree commit diff
path: root/tests/ui/transmutability/issue-110467.rs
blob: 4acea5f766da29d2a06f746e966fe3ac43fef0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass
#![crate_type = "lib"]
#![feature(transmutability)]
use std::mem::TransmuteFrom;

pub fn is_maybe_transmutable<Src, Dst>()
where
    Dst: TransmuteFrom<Src>,
{
}

// The `T` here should not have any effect on checking
// if transmutability is allowed or not.
fn function_with_generic<T>() {
    is_maybe_transmutable::<(), ()>();
}