]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-js/generics-trait.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / rustdoc-js / generics-trait.rs
1 pub trait SomeTrait {}
2 pub trait OtherThingxxxxxxxx {}
3
4 pub fn alef<T: OtherThingxxxxxxxx>() -> Result<T, ()> { loop {} }
5 pub fn bet<T: SomeTrait>() -> Result<T, ()> { loop {} }
6
7 pub fn alpha<T: OtherThingxxxxxxxx>(_param: Result<T, ()>) { loop {} }
8 pub fn beta<T: SomeTrait>(_param: Result<T, ()>) { loop {} }