diff options
Diffstat (limited to 'tests/ui/higher-ranked/trait-bounds/hrtb-wrong-kind.stderr')
-rw-r--r-- | tests/ui/higher-ranked/trait-bounds/hrtb-wrong-kind.stderr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/higher-ranked/trait-bounds/hrtb-wrong-kind.stderr b/tests/ui/higher-ranked/trait-bounds/hrtb-wrong-kind.stderr new file mode 100644 index 000000000..765ea9f78 --- /dev/null +++ b/tests/ui/higher-ranked/trait-bounds/hrtb-wrong-kind.stderr @@ -0,0 +1,21 @@ +error[E0658]: only lifetime parameters can be used in this context + --> $DIR/hrtb-wrong-kind.rs:1:18 + | +LL | fn a() where for<T> T: Copy {} + | ^ + | + = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information + = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable + +error[E0658]: only lifetime parameters can be used in this context + --> $DIR/hrtb-wrong-kind.rs:4:24 + | +LL | fn b() where for<const C: usize> [(); C]: Copy {} + | ^ + | + = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information + = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0658`. |