diff options
Diffstat (limited to 'third_party/rust/pin-project-lite/tests/ui/invalid-bounds.stderr')
-rw-r--r-- | third_party/rust/pin-project-lite/tests/ui/invalid-bounds.stderr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/rust/pin-project-lite/tests/ui/invalid-bounds.stderr b/third_party/rust/pin-project-lite/tests/ui/invalid-bounds.stderr new file mode 100644 index 0000000000..ebd1da8179 --- /dev/null +++ b/third_party/rust/pin-project-lite/tests/ui/invalid-bounds.stderr @@ -0,0 +1,21 @@ +error: no rules expected the token `:` + --> $DIR/invalid-bounds.rs:4:25 + | +4 | struct A<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:` + | ^ no rules expected this token in macro call + +error: expected one of `+`, `,`, `=`, or `>`, found `:` + --> $DIR/invalid-bounds.rs:9:1 + | +9 | / pin_project! { +10 | | struct B<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:` +11 | | field: T, +12 | | } +13 | | } + | | ^ + | | | + | | expected one of `+`, `,`, `=`, or `>` + | |_unexpected token + | in this macro invocation + | + = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) |