mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
195 B
Rust
13 lines
195 B
Rust
// run-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() {
|
|
}
|