about summary refs log tree commit diff
path: root/tests/rustdoc-js/generics-trait.rs
blob: 58c86361e4193238659b7da6280fd5c4932e3236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub trait SomeTrait {}
pub trait OtherThingxxxxxxxx {}

pub fn alef<T: OtherThingxxxxxxxx>() -> Result<T, ()> {
    loop {}
}
pub fn bet<T: SomeTrait>() -> Result<T, ()> {
    loop {}
}

pub fn alpha<T: OtherThingxxxxxxxx>(_param: Result<T, ()>) {
    loop {}
}
pub fn beta<T: SomeTrait>(_param: Result<T, ()>) {
    loop {}
}