diff options
| author | David Wood <david.wood2@arm.com> | 2025-01-23 11:25:12 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-06-16 23:04:33 +0000 |
| commit | 322cc315040da14c12f84d74fd5761c5d064e50e (patch) | |
| tree | 5ee130130df3546a2f012dd84ad8bc95819da381 /tests/crashes | |
| parent | c6d88a1892ed9a7e6b12d116070be59114a624ad (diff) | |
| download | rust-322cc315040da14c12f84d74fd5761c5d064e50e.tar.gz rust-322cc315040da14c12f84d74fd5761c5d064e50e.zip | |
tests: `{Meta,Pointee}Sized` in non-minicore tests
As before, add `MetaSized` and `PointeeSized` traits to all of the non-minicore `no_core` tests so that they don't fail for lack of language items.
Diffstat (limited to 'tests/crashes')
| -rw-r--r-- | tests/crashes/120033.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/crashes/120033.rs b/tests/crashes/120033.rs index f1502978dc5..7584f98ec90 100644 --- a/tests/crashes/120033.rs +++ b/tests/crashes/120033.rs @@ -1,8 +1,10 @@ //@ known-bug: #120033 #![feature(non_lifetime_binders)] +#![allow(sized_hierarchy_migration)] +#![feature(sized_hierarchy)] // added to keep parameters unconstrained -pub trait Foo<T: ?Sized> { - type Bar<K: ?Sized>; +pub trait Foo<T: std::marker::PointeeSized> { + type Bar<K: std::marker::PointeeSized>; } pub struct Bar<T: ?AutoTrait> {} |
