rust/tests/ui/resolve/issue-3021-c.rs

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

10 lines
207 B
Rust
Raw Normal View History

fn siphash<T>() {
trait U {
2023-09-10 21:06:14 +00:00
fn g(&self, x: T) -> T; //~ ERROR can't use generic parameters from outer item
//~^ ERROR can't use generic parameters from outer item
}
}
fn main() {}