rust/src/test/ui/issues/issue-72076.rs

7 lines
90 B
Rust
Raw Normal View History

trait X {
type S;
fn f() -> Self::S {} //~ ERROR mismatched types
}
fn main() {}