diff options
| author | Oneirical <manchot@videotron.ca> | 2025-07-13 15:56:27 -0400 |
|---|---|---|
| committer | Oneirical <manchot@videotron.ca> | 2025-07-24 17:01:44 -0400 |
| commit | a924d44115b632775ef0d2e12382e285953b0c2c (patch) | |
| tree | 4cb6005288fc4a7407006094892fcf577f3f30cf /tests/ui/trait-bounds | |
| parent | 246733a3d978de41c5b77b8120ba8f41592df9f1 (diff) | |
| download | rust-a924d44115b632775ef0d2e12382e285953b0c2c.tar.gz rust-a924d44115b632775ef0d2e12382e285953b0c2c.zip | |
Rehome tests/ui/issues/ tests [1/?]
Diffstat (limited to 'tests/ui/trait-bounds')
| -rw-r--r-- | tests/ui/trait-bounds/for-binder-placement-error-39089.rs | 6 | ||||
| -rw-r--r-- | tests/ui/trait-bounds/for-binder-placement-error-39089.stderr | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/trait-bounds/for-binder-placement-error-39089.rs b/tests/ui/trait-bounds/for-binder-placement-error-39089.rs new file mode 100644 index 00000000000..47976bdfff4 --- /dev/null +++ b/tests/ui/trait-bounds/for-binder-placement-error-39089.rs @@ -0,0 +1,6 @@ +fn f<T: ?for<'a> Sized>() {} +//~^ ERROR `for<...>` binder should be placed before trait bound modifiers + +fn main() {} + +// https://github.com/rust-lang/rust/issues/39089 diff --git a/tests/ui/trait-bounds/for-binder-placement-error-39089.stderr b/tests/ui/trait-bounds/for-binder-placement-error-39089.stderr new file mode 100644 index 00000000000..12fcbc5757f --- /dev/null +++ b/tests/ui/trait-bounds/for-binder-placement-error-39089.stderr @@ -0,0 +1,10 @@ +error: `for<...>` binder should be placed before trait bound modifiers + --> $DIR/for-binder-placement-error-39089.rs:1:13 + | +LL | fn f<T: ?for<'a> Sized>() {} + | - ^^^^ + | | + | place the `for<...>` binder before any modifiers + +error: aborting due to 1 previous error + |
