rust/tests/ui/issues/issue-18173.rs

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

13 lines
198 B
Rust
Raw Normal View History

2024-02-07 02:42:01 +00:00
//@ check-pass
trait Foo {
type T;
}
// should be able to use a trait with an associated type without specifying it as an argument
trait Bar<F: Foo> {
fn bar(foo: &F);
}
pub fn main() {
}