fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied 2 --> $DIR/generic-arg-mismatch-recover.rs:6:5 3 | 4LL | Foo::<'static, 'static, ()>(&0); 5 | ^^^ ------- help: remove this lifetime argument 6 | | 7 | expected 1 lifetime argument 8 | 9note: struct defined here, with 1 lifetime parameter: `'a` 10 --> $DIR/generic-arg-mismatch-recover.rs:1:8 11 | 12LL | struct Foo<'a, T: 'a>(&'a T); 13 | ^^^ -- 14 15error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied 16 --> $DIR/generic-arg-mismatch-recover.rs:9:5 17 | 18LL | Bar::<'static, 'static, ()>(&()); 19 | ^^^ ------- help: remove this lifetime argument 20 | | 21 | expected 1 lifetime argument 22 | 23note: struct defined here, with 1 lifetime parameter: `'a` 24 --> $DIR/generic-arg-mismatch-recover.rs:3:8 25 | 26LL | struct Bar<'a>(&'a ()); 27 | ^^^ -- 28 29error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied 30 --> $DIR/generic-arg-mismatch-recover.rs:9:5 31 | 32LL | Bar::<'static, 'static, ()>(&()); 33 | ^^^ -- help: remove this generic argument 34 | | 35 | expected 0 generic arguments 36 | 37note: struct defined here, with 0 generic parameters 38 --> $DIR/generic-arg-mismatch-recover.rs:3:8 39 | 40LL | struct Bar<'a>(&'a ()); 41 | ^^^ 42 43error: aborting due to 3 previous errors 44 45For more information about this error, try `rustc --explain E0107`.