diff options
Diffstat (limited to 'quote/tests/ui')
-rw-r--r-- | quote/tests/ui/does-not-have-iter-interpolated-dup.rs | 9 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter-interpolated-dup.stderr | 11 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter-interpolated.rs | 9 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter-interpolated.stderr | 11 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter-separated.rs | 5 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter-separated.stderr | 11 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter.rs | 5 | ||||
-rw-r--r-- | quote/tests/ui/does-not-have-iter.stderr | 11 | ||||
-rw-r--r-- | quote/tests/ui/not-quotable.rs | 7 | ||||
-rw-r--r-- | quote/tests/ui/not-quotable.stderr | 10 | ||||
-rw-r--r-- | quote/tests/ui/not-repeatable.rs | 7 | ||||
-rw-r--r-- | quote/tests/ui/not-repeatable.stderr | 14 | ||||
-rw-r--r-- | quote/tests/ui/wrong-type-span.rs | 7 | ||||
-rw-r--r-- | quote/tests/ui/wrong-type-span.stderr | 10 |
14 files changed, 0 insertions, 127 deletions
diff --git a/quote/tests/ui/does-not-have-iter-interpolated-dup.rs b/quote/tests/ui/does-not-have-iter-interpolated-dup.rs deleted file mode 100644 index 0a39f41..0000000 --- a/quote/tests/ui/does-not-have-iter-interpolated-dup.rs +++ /dev/null @@ -1,9 +0,0 @@ -use quote::quote; - -fn main() { - let nonrep = ""; - - // Without some protection against repetitions with no iterator somewhere - // inside, this would loop infinitely. - quote!(#(#nonrep #nonrep)*); -} diff --git a/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr b/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr deleted file mode 100644 index 6ee6fdf..0000000 --- a/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/does-not-have-iter-interpolated-dup.rs:8:5 - | -8 | quote!(#(#nonrep #nonrep)*); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `quote::__rt::HasIterator`, found struct `quote::__rt::ThereIsNoIteratorInRepetition` - | - = note: expected type `quote::__rt::HasIterator` - found type `quote::__rt::ThereIsNoIteratorInRepetition` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0308`. diff --git a/quote/tests/ui/does-not-have-iter-interpolated.rs b/quote/tests/ui/does-not-have-iter-interpolated.rs deleted file mode 100644 index 2c740cc..0000000 --- a/quote/tests/ui/does-not-have-iter-interpolated.rs +++ /dev/null @@ -1,9 +0,0 @@ -use quote::quote; - -fn main() { - let nonrep = ""; - - // Without some protection against repetitions with no iterator somewhere - // inside, this would loop infinitely. - quote!(#(#nonrep)*); -} diff --git a/quote/tests/ui/does-not-have-iter-interpolated.stderr b/quote/tests/ui/does-not-have-iter-interpolated.stderr deleted file mode 100644 index 8d6c990..0000000 --- a/quote/tests/ui/does-not-have-iter-interpolated.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/does-not-have-iter-interpolated.rs:8:5 - | -8 | quote!(#(#nonrep)*); - | ^^^^^^^^^^^^^^^^^^^^ expected struct `quote::__rt::HasIterator`, found struct `quote::__rt::ThereIsNoIteratorInRepetition` - | - = note: expected type `quote::__rt::HasIterator` - found type `quote::__rt::ThereIsNoIteratorInRepetition` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0308`. diff --git a/quote/tests/ui/does-not-have-iter-separated.rs b/quote/tests/ui/does-not-have-iter-separated.rs deleted file mode 100644 index c027243..0000000 --- a/quote/tests/ui/does-not-have-iter-separated.rs +++ /dev/null @@ -1,5 +0,0 @@ -use quote::quote; - -fn main() { - quote!(#(a b),*); -} diff --git a/quote/tests/ui/does-not-have-iter-separated.stderr b/quote/tests/ui/does-not-have-iter-separated.stderr deleted file mode 100644 index c1fd0ad..0000000 --- a/quote/tests/ui/does-not-have-iter-separated.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/does-not-have-iter-separated.rs:4:5 - | -4 | quote!(#(a b),*); - | ^^^^^^^^^^^^^^^^^ expected struct `quote::__rt::HasIterator`, found struct `quote::__rt::ThereIsNoIteratorInRepetition` - | - = note: expected type `quote::__rt::HasIterator` - found type `quote::__rt::ThereIsNoIteratorInRepetition` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0308`. diff --git a/quote/tests/ui/does-not-have-iter.rs b/quote/tests/ui/does-not-have-iter.rs deleted file mode 100644 index 8908353..0000000 --- a/quote/tests/ui/does-not-have-iter.rs +++ /dev/null @@ -1,5 +0,0 @@ -use quote::quote; - -fn main() { - quote!(#(a b)*); -} diff --git a/quote/tests/ui/does-not-have-iter.stderr b/quote/tests/ui/does-not-have-iter.stderr deleted file mode 100644 index 3b87705..0000000 --- a/quote/tests/ui/does-not-have-iter.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/does-not-have-iter.rs:4:5 - | -4 | quote!(#(a b)*); - | ^^^^^^^^^^^^^^^^ expected struct `quote::__rt::HasIterator`, found struct `quote::__rt::ThereIsNoIteratorInRepetition` - | - = note: expected type `quote::__rt::HasIterator` - found type `quote::__rt::ThereIsNoIteratorInRepetition` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0308`. diff --git a/quote/tests/ui/not-quotable.rs b/quote/tests/ui/not-quotable.rs deleted file mode 100644 index f991c18..0000000 --- a/quote/tests/ui/not-quotable.rs +++ /dev/null @@ -1,7 +0,0 @@ -use quote::quote; -use std::net::Ipv4Addr; - -fn main() { - let ip = Ipv4Addr::LOCALHOST; - let _ = quote! { #ip }; -} diff --git a/quote/tests/ui/not-quotable.stderr b/quote/tests/ui/not-quotable.stderr deleted file mode 100644 index f51f85f..0000000 --- a/quote/tests/ui/not-quotable.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0277]: the trait bound `std::net::Ipv4Addr: quote::to_tokens::ToTokens` is not satisfied - --> $DIR/not-quotable.rs:6:13 - | -6 | let _ = quote! { #ip }; - | ^^^^^^^^^^^^^^ the trait `quote::to_tokens::ToTokens` is not implemented for `std::net::Ipv4Addr` - | - = note: required by `quote::to_tokens::ToTokens::to_tokens` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0277`. diff --git a/quote/tests/ui/not-repeatable.rs b/quote/tests/ui/not-repeatable.rs deleted file mode 100644 index ff18060..0000000 --- a/quote/tests/ui/not-repeatable.rs +++ /dev/null @@ -1,7 +0,0 @@ -use quote::quote; -use std::net::Ipv4Addr; - -fn main() { - let ip = Ipv4Addr::LOCALHOST; - let _ = quote! { #(#ip)* }; -} diff --git a/quote/tests/ui/not-repeatable.stderr b/quote/tests/ui/not-repeatable.stderr deleted file mode 100644 index ddcac05..0000000 --- a/quote/tests/ui/not-repeatable.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error[E0599]: no method named `quote_into_iter` found for type `std::net::Ipv4Addr` in the current scope - --> $DIR/not-repeatable.rs:6:13 - | -6 | let _ = quote! { #(#ip)* }; - | ^^^^^^^^^^^^^^^^^^ - | - = note: the method `quote_into_iter` exists but the following trait bounds were not satisfied: - `&mut std::net::Ipv4Addr : quote::__rt::ext::RepIteratorExt` - `&std::net::Ipv4Addr : quote::__rt::ext::RepIteratorExt` - `std::net::Ipv4Addr : quote::__rt::ext::RepIteratorExt` - `std::net::Ipv4Addr : quote::__rt::ext::RepToTokensExt` - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) - -For more information about this error, try `rustc --explain E0599`. diff --git a/quote/tests/ui/wrong-type-span.rs b/quote/tests/ui/wrong-type-span.rs deleted file mode 100644 index 1ce391c..0000000 --- a/quote/tests/ui/wrong-type-span.rs +++ /dev/null @@ -1,7 +0,0 @@ -use quote::quote_spanned; - -fn main() { - let span = ""; - let x = 0; - quote_spanned!(span=> #x); -} diff --git a/quote/tests/ui/wrong-type-span.stderr b/quote/tests/ui/wrong-type-span.stderr deleted file mode 100644 index a6ae8ef..0000000 --- a/quote/tests/ui/wrong-type-span.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/wrong-type-span.rs:6:20 - | -6 | quote_spanned!(span=> #x); - | ^^^^ expected struct `proc_macro2::Span`, found &str - | - = note: expected type `proc_macro2::Span` - found type `&str` - -For more information about this error, try `rustc --explain E0308`. |