fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug` 2 --> $DIR/impl-trait-with-missing-bounds.rs:6:13 3 | 4LL | qux(constraint); 5 | ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 6... 7LL | fn qux(_: impl std::fmt::Debug) {} 8 | --------------- required by this bound in `qux` 9 | 10 = help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item` 11help: introduce a type parameter with a trait bound instead of using `impl Trait` 12 | 13LL | fn foo<I: Iterator>(constraints: I) where <I as std::iter::Iterator>::Item: std::fmt::Debug { 14 | ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 16error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug` 17 --> $DIR/impl-trait-with-missing-bounds.rs:14:13 18 | 19LL | qux(constraint); 20 | ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 21... 22LL | fn qux(_: impl std::fmt::Debug) {} 23 | --------------- required by this bound in `qux` 24 | 25 = help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item` 26help: introduce a type parameter with a trait bound instead of using `impl Trait` 27 | 28LL | fn bar<T, I: Iterator>(t: T, constraints: I) where T: std::fmt::Debug, <I as std::iter::Iterator>::Item: std::fmt::Debug { 29 | ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 31error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug` 32 --> $DIR/impl-trait-with-missing-bounds.rs:22:13 33 | 34LL | qux(constraint); 35 | ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 36... 37LL | fn qux(_: impl std::fmt::Debug) {} 38 | --------------- required by this bound in `qux` 39 | 40 = help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item` 41help: introduce a type parameter with a trait bound instead of using `impl Trait` 42 | 43LL | fn baz<I: Iterator>(t: impl std::fmt::Debug, constraints: I) where <I as std::iter::Iterator>::Item: std::fmt::Debug { 44 | ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 45 46error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug` 47 --> $DIR/impl-trait-with-missing-bounds.rs:30:13 48 | 49LL | qux(constraint); 50 | ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 51... 52LL | fn qux(_: impl std::fmt::Debug) {} 53 | --------------- required by this bound in `qux` 54 | 55 = help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item` 56help: introduce a type parameter with a trait bound instead of using `impl Trait` 57 | 58LL | fn bat<I, T: std::fmt::Debug, U: Iterator>(t: T, constraints: U, _: I) where <U as std::iter::Iterator>::Item: std::fmt::Debug { 59 | ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 61error[E0277]: `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug` 62 --> $DIR/impl-trait-with-missing-bounds.rs:37:13 63 | 64LL | qux(constraint); 65 | ^^^^^^^^^^ `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 66... 67LL | fn qux(_: impl std::fmt::Debug) {} 68 | --------------- required by this bound in `qux` 69 | 70 = help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` 71help: introduce a type parameter with a trait bound instead of using `impl Trait` 72 | 73LL | fn bak<I: Iterator + std::fmt::Debug>(constraints: I) where <I as std::iter::Iterator>::Item: std::fmt::Debug { 74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 75 76error: aborting due to 5 previous errors 77 78For more information about this error, try `rustc --explain E0277`.