fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: struct takes 2 lifetime arguments but 1 lifetime argument was supplied 2 --> $DIR/E0107.rs:13:11 3 | 4LL | buzz: Buzz<'a>, 5 | ^^^^ -- supplied 1 lifetime argument 6 | | 7 | expected 2 lifetime arguments 8 | 9note: struct defined here, with 2 lifetime parameters: `'a`, `'b` 10 --> $DIR/E0107.rs:2:8 11 | 12LL | struct Buzz<'a, 'b>(&'a str, &'b str); 13 | ^^^^ -- -- 14help: add missing lifetime argument 15 | 16LL | buzz: Buzz<'a, 'a>, 17 | ++++ 18 19error[E0107]: enum takes 0 lifetime arguments but 1 lifetime argument was supplied 20 --> $DIR/E0107.rs:17:10 21 | 22LL | bar: Bar<'a>, 23 | ^^^---- help: remove these generics 24 | | 25 | expected 0 lifetime arguments 26 | 27note: enum defined here, with 0 lifetime parameters 28 --> $DIR/E0107.rs:6:6 29 | 30LL | enum Bar { 31 | ^^^ 32 33error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied 34 --> $DIR/E0107.rs:21:11 35 | 36LL | foo2: Foo<'a, 'b, 'c>, 37 | ^^^ ------ help: remove these lifetime arguments 38 | | 39 | expected 1 lifetime argument 40 | 41note: struct defined here, with 1 lifetime parameter: `'a` 42 --> $DIR/E0107.rs:1:8 43 | 44LL | struct Foo<'a>(&'a str); 45 | ^^^ -- 46 47error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied 48 --> $DIR/E0107.rs:25:11 49 | 50LL | qux1: Qux<'a, 'b, i32>, 51 | ^^^ -- help: remove this lifetime argument 52 | | 53 | expected 1 lifetime argument 54 | 55note: struct defined here, with 1 lifetime parameter: `'a` 56 --> $DIR/E0107.rs:3:8 57 | 58LL | struct Qux<'a, T>(&'a T); 59 | ^^^ -- 60 61error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied 62 --> $DIR/E0107.rs:29:11 63 | 64LL | qux2: Qux<'a, i32, 'b>, 65 | ^^^ -- help: remove this lifetime argument 66 | | 67 | expected 1 lifetime argument 68 | 69note: struct defined here, with 1 lifetime parameter: `'a` 70 --> $DIR/E0107.rs:3:8 71 | 72LL | struct Qux<'a, T>(&'a T); 73 | ^^^ -- 74 75error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied 76 --> $DIR/E0107.rs:33:11 77 | 78LL | qux3: Qux<'a, 'b, 'c, i32>, 79 | ^^^ ------ help: remove these lifetime arguments 80 | | 81 | expected 1 lifetime argument 82 | 83note: struct defined here, with 1 lifetime parameter: `'a` 84 --> $DIR/E0107.rs:3:8 85 | 86LL | struct Qux<'a, T>(&'a T); 87 | ^^^ -- 88 89error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied 90 --> $DIR/E0107.rs:37:11 91 | 92LL | qux4: Qux<'a, i32, 'b, 'c>, 93 | ^^^ ------ help: remove these lifetime arguments 94 | | 95 | expected 1 lifetime argument 96 | 97note: struct defined here, with 1 lifetime parameter: `'a` 98 --> $DIR/E0107.rs:3:8 99 | 100LL | struct Qux<'a, T>(&'a T); 101 | ^^^ -- 102 103error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied 104 --> $DIR/E0107.rs:41:11 105 | 106LL | qux5: Qux<'a, 'b, i32, 'c>, 107 | ^^^ -- help: remove this lifetime argument 108 | | 109 | expected 1 lifetime argument 110 | 111note: struct defined here, with 1 lifetime parameter: `'a` 112 --> $DIR/E0107.rs:3:8 113 | 114LL | struct Qux<'a, T>(&'a T); 115 | ^^^ -- 116 117error[E0107]: struct takes 0 lifetime arguments but 2 lifetime arguments were supplied 118 --> $DIR/E0107.rs:45:11 119 | 120LL | quux: Quux<'a, i32, 'b>, 121 | ^^^^ -- help: remove this lifetime argument 122 | | 123 | expected 0 lifetime arguments 124 | 125note: struct defined here, with 0 lifetime parameters 126 --> $DIR/E0107.rs:4:8 127 | 128LL | struct Quux<T>(T); 129 | ^^^^ 130 131error[E0107]: trait takes 0 generic arguments but 2 generic arguments were supplied 132 --> $DIR/E0107.rs:55:27 133 | 134LL | fn trait_bound_generic<I: T<u8, u16>>(_i: I) { 135 | ^ expected 0 generic arguments 136 | 137note: trait defined here, with 0 generic parameters 138 --> $DIR/E0107.rs:50:11 139 | 140LL | pub trait T { 141 | ^ 142help: replace the generic bounds with the associated types 143 | 144LL | fn trait_bound_generic<I: T<A = u8, B = u16>>(_i: I) { 145 | +++ +++ 146 147error: aborting due to 10 previous errors 148 149For more information about this error, try `rustc --explain E0107`.