-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ui test suite to nightly-2022-07-02
- Loading branch information
Showing
1 changed file
with
32 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,35 @@ | ||
error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied | ||
--> tests/ui/not-repeatable.rs:7:13 | ||
| | ||
3 | struct Ipv4Addr; | ||
| ---------------- | ||
| | | | ||
| | method `quote_into_iter` not found for this struct | ||
| doesn't satisfy `Ipv4Addr: Iterator` | ||
| doesn't satisfy `Ipv4Addr: ToTokens` | ||
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepToTokensExt` | ||
--> tests/ui/not-repeatable.rs:7:13 | ||
| | ||
3 | struct Ipv4Addr; | ||
| --------------- | ||
| | | | ||
| | method `quote_into_iter` not found for this struct | ||
| doesn't satisfy `Ipv4Addr: Iterator` | ||
| doesn't satisfy `Ipv4Addr: ToTokens` | ||
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
| doesn't satisfy `Ipv4Addr: quote::__private::ext::RepToTokensExt` | ||
... | ||
7 | let _ = quote! { #(#ip)* }; | ||
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds | ||
| | ||
= note: the following trait bounds were not satisfied: | ||
`Ipv4Addr: Iterator` | ||
which is required by `Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
`&Ipv4Addr: Iterator` | ||
which is required by `&Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
`Ipv4Addr: ToTokens` | ||
which is required by `Ipv4Addr: quote::__private::ext::RepToTokensExt` | ||
`&mut Ipv4Addr: Iterator` | ||
which is required by `&mut Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
7 | let _ = quote! { #(#ip)* }; | ||
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds | ||
| | ||
= note: the following trait bounds were not satisfied: | ||
`Ipv4Addr: Iterator` | ||
which is required by `Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
`&Ipv4Addr: Iterator` | ||
which is required by `&Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
`Ipv4Addr: ToTokens` | ||
which is required by `Ipv4Addr: quote::__private::ext::RepToTokensExt` | ||
`&mut Ipv4Addr: Iterator` | ||
which is required by `&mut Ipv4Addr: quote::__private::ext::RepIteratorExt` | ||
note: the following traits must be implemented | ||
--> $RUST/core/src/iter/traits/iterator.rs | ||
| | ||
| / pub trait Iterator { | ||
| | /// The type of the elements being iterated over. | ||
| | #[stable(feature = "rust1", since = "1.0.0")] | ||
| | type Item; | ||
... | | ||
| | } | ||
| | } | ||
| |__^ | ||
| | ||
::: src/to_tokens.rs | ||
| | ||
| / pub trait ToTokens { | ||
| | /// Write `self` to the given `TokenStream`. | ||
| | /// | ||
| | /// The token append methods provided by the [`TokenStreamExt`] extension | ||
... | | ||
| | } | ||
| | } | ||
| |_^ | ||
= note: this error originates in the macro `$crate::quote_bind_into_iter` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> $RUST/core/src/iter/traits/iterator.rs | ||
| | ||
| pub trait Iterator { | ||
| ^^^^^^^^^^^^^^^^^^ | ||
| | ||
::: src/to_tokens.rs | ||
| | ||
| pub trait ToTokens { | ||
| ^^^^^^^^^^^^^^^^^^ | ||
= note: this error originates in the macro `$crate::quote_bind_into_iter` (in Nightly builds, run with -Z macro-backtrace for more info) |