fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0401]: can't use generic parameters from outer item 2 --> $DIR/issue-3021-c.rs:4:24 3 | 4LL | fn siphash<T>() { 5 | - type parameter from outer item 6LL | 7LL | trait U { 8 | - help: try introducing a local generic parameter here: `<T>` 9LL | fn g(&self, x: T) -> T; 10 | ^ use of generic parameter from outer item 11 12error[E0401]: can't use generic parameters from outer item 13 --> $DIR/issue-3021-c.rs:4:30 14 | 15LL | fn siphash<T>() { 16 | - type parameter from outer item 17LL | 18LL | trait U { 19 | - help: try introducing a local generic parameter here: `<T>` 20LL | fn g(&self, x: T) -> T; 21 | ^ use of generic parameter from outer item 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0401`.