about summary refs log tree commit diff
path: root/tests/ui/issues/issue-18173.rs
blob: a9f20e827fbe3249542225bef6c47beecf156a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {
}