diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-18 19:14:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 19:14:43 +0200 |
| commit | f38891e697e9b9efe3c232d25c20feb80bc248bc (patch) | |
| tree | 2c2bfa43a21adc2e4133055952a621b9c1626fdd /tests/ui/sized-hierarchy/default-bound.rs | |
| parent | b3827e4f3728b77bd3e60587487ebfc3cc8d901b (diff) | |
| parent | 82a02aefe07092c737c852daccebf49ca25507e3 (diff) | |
| download | rust-f38891e697e9b9efe3c232d25c20feb80bc248bc.tar.gz rust-f38891e697e9b9efe3c232d25c20feb80bc248bc.zip | |
Rollup merge of #142693 - fmease:unbound-bettering, r=compiler-errors
More robustly deal with relaxed bounds and improve their diagnostics Scaffolding for https://github.com/rust-lang/rust/issues/135229 (CC https://github.com/rust-lang/rust/pull/135331) Fixes https://github.com/rust-lang/rust/issues/136944 (6th commit). Fixes https://github.com/rust-lang/rust/issues/142718 (8th commit).
Diffstat (limited to 'tests/ui/sized-hierarchy/default-bound.rs')
| -rw-r--r-- | tests/ui/sized-hierarchy/default-bound.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/sized-hierarchy/default-bound.rs b/tests/ui/sized-hierarchy/default-bound.rs index 12b2eb2b5c1..bbb2c6d96ba 100644 --- a/tests/ui/sized-hierarchy/default-bound.rs +++ b/tests/ui/sized-hierarchy/default-bound.rs @@ -14,13 +14,13 @@ fn neg_sized<T: ?Sized>() {} fn metasized<T: MetaSized>() {} fn neg_metasized<T: ?MetaSized>() {} -//~^ ERROR relaxing a default bound only does something for `?Sized`; all other traits are not bound by default +//~^ ERROR bound modifier `?` can only be applied to `Sized` fn pointeesized<T: PointeeSized>() { } fn neg_pointeesized<T: ?PointeeSized>() { } -//~^ ERROR relaxing a default bound only does something for `?Sized`; all other traits are not bound by default +//~^ ERROR bound modifier `?` can only be applied to `Sized` fn main() { |
