blob: 2523b21cfaa5099acb43a028cce4cde3d9df11a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
pub struct P;
pub struct Q;
pub struct R<T>(T);
// returns test
pub fn alef() -> &'static [R<P>] { loop {} }
pub fn bet() -> R<[Q; 32]> { loop {} }
// in_args test
pub fn alpha(_x: R<&'static [P]>) { loop {} }
pub fn beta(_x: [R<Q>; 32]) { loop {} }
pub trait TraitCat {}
pub trait TraitDog {}
pub fn gamma<T: TraitCat + TraitDog>(t: [T; 32]) {}
|