Skip to content

Commit efc9b69

Browse files
committed
Ui test changes for trybuild 1.0.66
1 parent 1e2b198 commit efc9b69

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ proc-macro2 = { version = "1.0.40", default-features = false }
1717

1818
[dev-dependencies]
1919
rustversion = "1.0"
20-
trybuild = { version = "1.0.52", features = ["diff"] }
20+
trybuild = { version = "1.0.66", features = ["diff"] }
2121

2222
[features]
2323
default = ["proc-macro"]

tests/ui/not-repeatable.stderr

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
2-
--> tests/ui/not-repeatable.rs:7:9
3-
|
4-
3 | struct Ipv4Addr;
5-
| ---------------
6-
| |
7-
| method `quote_into_iter` not found for this struct
8-
| doesn't satisfy `Ipv4Addr: Iterator`
9-
| doesn't satisfy `Ipv4Addr: ToTokens`
10-
| doesn't satisfy `Ipv4Addr: ext::RepIteratorExt`
11-
| doesn't satisfy `Ipv4Addr: ext::RepToTokensExt`
2+
--> tests/ui/not-repeatable.rs:7:9
3+
|
4+
3 | struct Ipv4Addr;
5+
| ---------------
6+
| |
7+
| method `quote_into_iter` not found for this struct
8+
| doesn't satisfy `Ipv4Addr: Iterator`
9+
| doesn't satisfy `Ipv4Addr: ToTokens`
10+
| doesn't satisfy `Ipv4Addr: ext::RepIteratorExt`
11+
| doesn't satisfy `Ipv4Addr: ext::RepToTokensExt`
1212
...
13-
7 | _ = quote! { #(#ip)* };
14-
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
15-
|
16-
= note: the following trait bounds were not satisfied:
17-
`Ipv4Addr: Iterator`
18-
which is required by `Ipv4Addr: ext::RepIteratorExt`
19-
`&Ipv4Addr: Iterator`
20-
which is required by `&Ipv4Addr: ext::RepIteratorExt`
21-
`Ipv4Addr: ToTokens`
22-
which is required by `Ipv4Addr: ext::RepToTokensExt`
23-
`&mut Ipv4Addr: Iterator`
24-
which is required by `&mut Ipv4Addr: ext::RepIteratorExt`
13+
7 | _ = quote! { #(#ip)* };
14+
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
15+
|
16+
= note: the following trait bounds were not satisfied:
17+
`Ipv4Addr: Iterator`
18+
which is required by `Ipv4Addr: ext::RepIteratorExt`
19+
`&Ipv4Addr: Iterator`
20+
which is required by `&Ipv4Addr: ext::RepIteratorExt`
21+
`Ipv4Addr: ToTokens`
22+
which is required by `Ipv4Addr: ext::RepToTokensExt`
23+
`&mut Ipv4Addr: Iterator`
24+
which is required by `&mut Ipv4Addr: ext::RepIteratorExt`
2525
note: the following traits must be implemented
26-
--> src/to_tokens.rs
27-
|
28-
| pub trait ToTokens {
29-
| ^^^^^^^^^^^^^^^^^^
30-
|
31-
::: $RUST/core/src/iter/traits/iterator.rs
32-
|
33-
| pub trait Iterator {
34-
| ^^^^^^^^^^^^^^^^^^
35-
= note: this error originates in the macro `$crate::quote_bind_into_iter` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
26+
--> src/to_tokens.rs
27+
|
28+
| pub trait ToTokens {
29+
| ^^^^^^^^^^^^^^^^^^
30+
|
31+
::: $RUST/core/src/iter/traits/iterator.rs
32+
|
33+
| pub trait Iterator {
34+
| ^^^^^^^^^^^^^^^^^^
35+
= note: this error originates in the macro `$crate::quote_bind_into_iter` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)