fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` 2 --> $DIR/impl-trait-with-missing-bounds.rs:6:13 3 | 4LL | qux(constraint); 5 | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` 10note: required by a bound in `qux` 11 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 12 | 13LL | fn qux(_: impl std::fmt::Debug) {} 14 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 15help: introduce a type parameter with a trait bound instead of using `impl Trait` 16 | 17LL | fn foo<I: Iterator>(constraints: I) where <I as Iterator>::Item: Debug { 18 | +++++++++++++ ~ ++++++++++++++++++++++++++++++++++ 19 20error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` 21 --> $DIR/impl-trait-with-missing-bounds.rs:14:13 22 | 23LL | qux(constraint); 24 | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 25 | | 26 | required by a bound introduced by this call 27 | 28 = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` 29note: required by a bound in `qux` 30 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 31 | 32LL | fn qux(_: impl std::fmt::Debug) {} 33 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 34help: introduce a type parameter with a trait bound instead of using `impl Trait` 35 | 36LL | fn bar<T, I: Iterator>(t: T, constraints: I) where T: std::fmt::Debug, <I as Iterator>::Item: Debug { 37 | +++++++++++++ ~ ++++++++++++++++++++++++++++++ 38 39error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` 40 --> $DIR/impl-trait-with-missing-bounds.rs:22:13 41 | 42LL | qux(constraint); 43 | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 44 | | 45 | required by a bound introduced by this call 46 | 47 = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` 48note: required by a bound in `qux` 49 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 50 | 51LL | fn qux(_: impl std::fmt::Debug) {} 52 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 53help: introduce a type parameter with a trait bound instead of using `impl Trait` 54 | 55LL | fn baz<I: Iterator>(t: impl std::fmt::Debug, constraints: I) where <I as Iterator>::Item: Debug { 56 | +++++++++++++ ~ ++++++++++++++++++++++++++++++++++ 57 58error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` 59 --> $DIR/impl-trait-with-missing-bounds.rs:30:13 60 | 61LL | qux(constraint); 62 | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 63 | | 64 | required by a bound introduced by this call 65 | 66 = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` 67note: required by a bound in `qux` 68 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 69 | 70LL | fn qux(_: impl std::fmt::Debug) {} 71 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 72help: introduce a type parameter with a trait bound instead of using `impl Trait` 73 | 74LL | fn bat<I, T: std::fmt::Debug, U: Iterator>(t: T, constraints: U, _: I) where <U as Iterator>::Item: Debug { 75 | +++++++++++++ ~ ++++++++++++++++++++++++++++++++++ 76 77error[E0277]: `<impl Iterator + std::fmt::Debug as Iterator>::Item` doesn't implement `Debug` 78 --> $DIR/impl-trait-with-missing-bounds.rs:37:13 79 | 80LL | qux(constraint); 81 | --- ^^^^^^^^^^ `<impl Iterator + std::fmt::Debug as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 82 | | 83 | required by a bound introduced by this call 84 | 85 = help: the trait `Debug` is not implemented for `<impl Iterator + std::fmt::Debug as Iterator>::Item` 86note: required by a bound in `qux` 87 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 88 | 89LL | fn qux(_: impl std::fmt::Debug) {} 90 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 91help: introduce a type parameter with a trait bound instead of using `impl Trait` 92 | 93LL | fn bak<I: Iterator + std::fmt::Debug>(constraints: I) where <I as Iterator>::Item: Debug { 94 | +++++++++++++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++ 95 96error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` 97 --> $DIR/impl-trait-with-missing-bounds.rs:45:13 98 | 99LL | qux(constraint); 100 | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` 101 | | 102 | required by a bound introduced by this call 103 | 104 = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` 105note: required by a bound in `qux` 106 --> $DIR/impl-trait-with-missing-bounds.rs:50:16 107 | 108LL | fn qux(_: impl std::fmt::Debug) {} 109 | ^^^^^^^^^^^^^^^ required by this bound in `qux` 110help: introduce a type parameter with a trait bound instead of using `impl Trait` 111 | 112LL | fn baw<I: Iterator>(constraints: I) where <I as Iterator>::Item: Debug { 113 | ~~~~~~~~~~~~~ ~ ++++++++++++++++++++++++++++++++++ 114 115error: aborting due to 6 previous errors 116 117For more information about this error, try `rustc --explain E0277`.