rust/tests/rustdoc-js/generics-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
327 B
Rust
Raw Normal View History

pub trait SomeTrait {}
pub trait OtherThingxxxxxxxx {}
2024-06-03 02:35:56 -05:00
pub fn alef<T: OtherThingxxxxxxxx>() -> Result<T, ()> {
loop {}
}
pub fn bet<T: SomeTrait>() -> Result<T, ()> {
loop {}
}
2024-06-03 02:35:56 -05:00
pub fn alpha<T: OtherThingxxxxxxxx>(_param: Result<T, ()>) {
loop {}
}
pub fn beta<T: SomeTrait>(_param: Result<T, ()>) {
loop {}
}