mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
12 lines
182 B
Rust
12 lines
182 B
Rust
//@ run-rustfix
|
|
pub trait MyTrait {
|
|
type T;
|
|
|
|
fn bar(self) -> Self::T;
|
|
}
|
|
|
|
pub fn foo<A: MyTrait, B>(a: A) -> B {
|
|
return a.bar(); //~ ERROR mismatched types
|
|
}
|
|
fn main() {}
|