File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ mod ops {
147
147
pub use self::try_trait::Try;
148
148
}
149
149
150
- mov convert {
150
+ mod convert {
151
151
pub trait From<T> {}
152
152
impl<T> From<T> for T {}
153
153
}
@@ -567,8 +567,8 @@ fn deref_trait() {
567
567
check_types (
568
568
r#"
569
569
//- 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> {
572
572
type Target = T;
573
573
}
574
574
@@ -589,9 +589,9 @@ fn deref_trait_with_inference_var() {
589
589
check_types (
590
590
r#"
591
591
//- 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> {
595
595
type Target = T;
596
596
}
597
597
@@ -631,7 +631,7 @@ fn deref_trait_with_question_mark_size() {
631
631
check_types (
632
632
r#"
633
633
//- minicore: deref
634
- struct Arc<T>;
634
+ struct Arc<T: ?Sized >;
635
635
impl<T: ?Sized> core::ops::Deref for Arc<T> {
636
636
type Target = T;
637
637
}
@@ -2431,8 +2431,8 @@ fn dyn_trait_through_chalk() {
2431
2431
check_types (
2432
2432
r#"
2433
2433
//- 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> {
2436
2436
type Target = T;
2437
2437
}
2438
2438
trait Trait {
You can’t perform that action at this time.
0 commit comments