Skip to content

Commit 98ae530

Browse files
committed
Fix missing ?Sized bounds in tests.
1 parent 0f6621f commit 98ae530

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/hir_ty/src/tests/traits.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ mod ops {
147147
pub use self::try_trait::Try;
148148
}
149149
150-
mov convert {
150+
mod convert {
151151
pub trait From<T> {}
152152
impl<T> From<T> for T {}
153153
}
@@ -567,8 +567,8 @@ fn deref_trait() {
567567
check_types(
568568
r#"
569569
//- minicore: deref
570-
struct Arc<T>;
571-
impl<T> core::ops::Deref for Arc<T> {
570+
struct Arc<T: ?Sized>;
571+
impl<T: ?Sized> core::ops::Deref for Arc<T> {
572572
type Target = T;
573573
}
574574
@@ -589,9 +589,9 @@ fn deref_trait_with_inference_var() {
589589
check_types(
590590
r#"
591591
//- minicore: deref
592-
struct Arc<T>;
593-
fn new_arc<T>() -> Arc<T> { Arc }
594-
impl<T> core::ops::Deref for Arc<T> {
592+
struct Arc<T: ?Sized>;
593+
fn new_arc<T: ?Sized>() -> Arc<T> { Arc }
594+
impl<T: ?Sized> core::ops::Deref for Arc<T> {
595595
type Target = T;
596596
}
597597
@@ -631,7 +631,7 @@ fn deref_trait_with_question_mark_size() {
631631
check_types(
632632
r#"
633633
//- minicore: deref
634-
struct Arc<T>;
634+
struct Arc<T: ?Sized>;
635635
impl<T: ?Sized> core::ops::Deref for Arc<T> {
636636
type Target = T;
637637
}
@@ -2431,8 +2431,8 @@ fn dyn_trait_through_chalk() {
24312431
check_types(
24322432
r#"
24332433
//- minicore: deref
2434-
struct Box<T> {}
2435-
impl<T> core::ops::Deref for Box<T> {
2434+
struct Box<T: ?Sized> {}
2435+
impl<T: ?Sized> core::ops::Deref for Box<T> {
24362436
type Target = T;
24372437
}
24382438
trait Trait {

0 commit comments

Comments
 (0)