Skip to content

Commit 6755076

Browse files
committed
Remove Sized on_unimplemented note
1 parent 1380026 commit 6755076

File tree

82 files changed

+3
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3
-169
lines changed

src/libcore/marker.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,8 @@ impl<T: ?Sized> !Send for *mut T {}
8484
#[stable(feature = "rust1", since = "1.0.0")]
8585
#[lang = "sized"]
8686
#[rustc_on_unimplemented(
87-
on(parent_trait = "std::path::Path", label = "borrow the `Path` instead"),
8887
message = "the size for values of type `{Self}` cannot be known at compilation time",
89-
label = "doesn't have a size known at compile-time",
90-
note = "to learn more, visit <https://doc.rust-lang.org/book/\
91-
ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>"
88+
label = "doesn't have a size known at compile-time"
9289
)]
9390
#[fundamental] // for Default, for example, which requires that `[T]: !Default` be evaluatable
9491
#[rustc_specialization_trait]

src/test/ui/asm/type-check-1.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ LL | asm!("{}", in(reg) v[..]);
1717
| ^^^^^ doesn't have a size known at compile-time
1818
|
1919
= help: the trait `std::marker::Sized` is not implemented for `[u64]`
20-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2120
= note: all inline asm arguments must have a statically known size
2221

2322
error[E0277]: the size for values of type `[u64]` cannot be known at compilation time
@@ -27,7 +26,6 @@ LL | asm!("{}", out(reg) v[..]);
2726
| ^^^^^ doesn't have a size known at compile-time
2827
|
2928
= help: the trait `std::marker::Sized` is not implemented for `[u64]`
30-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3129
= note: all inline asm arguments must have a statically known size
3230

3331
error[E0277]: the size for values of type `[u64]` cannot be known at compilation time
@@ -37,7 +35,6 @@ LL | asm!("{}", inout(reg) v[..]);
3735
| ^^^^^ doesn't have a size known at compile-time
3836
|
3937
= help: the trait `std::marker::Sized` is not implemented for `[u64]`
40-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
4138
= note: all inline asm arguments must have a statically known size
4239

4340
error: aborting due to 5 previous errors

src/test/ui/associated-types/associated-types-unsized.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | let x = t.get();
55
| ^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `<T as Get>::Value`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: all local variables must have a statically known size
109
= help: unsized locals are gated as an unstable feature
1110
help: consider further restricting the associated type

src/test/ui/associated-types/defaults-suitability.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ LL | pub struct Vec<T> {
139139
| - required by this bound in `std::vec::Vec`
140140
|
141141
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
142-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
143142

144143
error: aborting due to 11 previous errors
145144

src/test/ui/associated-types/issue-63593.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ LL | type This = Self;
77
| ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
88
|
99
= help: the trait `std::marker::Sized` is not implemented for `Self`
10-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1110
help: consider further restricting `Self`
1211
|
1312
LL | trait MyTrait: std::marker::Sized {

src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ LL | pub trait Add<Rhs = Self> {
1010
| --- required by this bound in `std::ops::Add`
1111
|
1212
= help: the trait `std::marker::Sized` is not implemented for `Self`
13-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1413
help: consider further restricting `Self`
1514
|
1615
LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + std::marker::Sized {}

src/test/ui/async-await/issue-72590-type-error-sized.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ LL | async fn frob(self) {}
1717
| ^^^^ doesn't have a size known at compile-time
1818
|
1919
= help: within `Foo`, the trait `std::marker::Sized` is not implemented for `str`
20-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2120
= note: required because it appears within the type `Foo`
2221
= note: all local variables must have a statically known size
2322
= help: unsized locals are gated as an unstable feature

src/test/ui/bad/bad-sized.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ LL | pub struct Vec<T> {
2121
| - required by this bound in `std::vec::Vec`
2222
|
2323
= help: the trait `std::marker::Sized` is not implemented for `dyn Trait`
24-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2524

2625
error[E0277]: the size for values of type `dyn Trait` cannot be known at compilation time
2726
--> $DIR/bad-sized.rs:4:37
@@ -30,7 +29,6 @@ LL | let x: Vec<dyn Trait + Sized> = Vec::new();
3029
| ^^^^^^^^ doesn't have a size known at compile-time
3130
|
3231
= help: the trait `std::marker::Sized` is not implemented for `dyn Trait`
33-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3432
= note: required by `std::vec::Vec::<T>::new`
3533

3634
error: aborting due to 3 previous errors

src/test/ui/box-into-boxed-slice-fail.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | let _ = Box::into_boxed_slice(boxed_slice);
55
| ^^^^^^^^^^^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: required by `std::boxed::Box::<T>::into_boxed_slice`
109

1110
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
@@ -15,7 +14,6 @@ LL | let _ = Box::into_boxed_slice(boxed_slice);
1514
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
1615
|
1716
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
18-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1917
= note: slice and array elements must have `Sized` type
2018

2119
error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
@@ -25,7 +23,6 @@ LL | let _ = Box::into_boxed_slice(boxed_trait);
2523
| ^^^^^^^^^^^ doesn't have a size known at compile-time
2624
|
2725
= help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
28-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2926
= note: required by `std::boxed::Box::<T>::into_boxed_slice`
3027

3128
error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
@@ -35,7 +32,6 @@ LL | let _ = Box::into_boxed_slice(boxed_trait);
3532
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
3633
|
3734
= help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
38-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3935
= note: slice and array elements must have `Sized` type
4036

4137
error: aborting due to 4 previous errors

src/test/ui/chalkify/impl_wf.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ LL | impl Foo for str { }
88
| ^^^ doesn't have a size known at compile-time
99
|
1010
= help: the trait `std::marker::Sized` is not implemented for `str`
11-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1211

1312
error[E0277]: the trait bound `f32: Foo` is not satisfied
1413
--> $DIR/impl_wf.rs:27:17

src/test/ui/consts/const-unsized.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | const CONST_0: dyn Debug + Sync = *(&0 as &(dyn Debug + Sync));
55
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98

109
error[E0277]: the size for values of type `str` cannot be known at compilation time
1110
--> $DIR/const-unsized.rs:6:18
@@ -14,7 +13,6 @@ LL | const CONST_FOO: str = *"foo";
1413
| ^^^ doesn't have a size known at compile-time
1514
|
1615
= help: the trait `std::marker::Sized` is not implemented for `str`
17-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1816

1917
error[E0277]: the size for values of type `(dyn std::fmt::Debug + std::marker::Sync + 'static)` cannot be known at compilation time
2018
--> $DIR/const-unsized.rs:9:18
@@ -23,7 +21,6 @@ LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
2321
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
2422
|
2523
= help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
26-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2724

2825
error[E0277]: the size for values of type `str` cannot be known at compilation time
2926
--> $DIR/const-unsized.rs:12:20
@@ -32,7 +29,6 @@ LL | static STATIC_BAR: str = *"bar";
3229
| ^^^ doesn't have a size known at compile-time
3330
|
3431
= help: the trait `std::marker::Sized` is not implemented for `str`
35-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3632

3733
error: aborting due to 4 previous errors
3834

src/test/ui/dst/dst-bad-assign-2.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | f5.ptr = *z;
55
| ^^^^^^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `dyn ToBar`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: the left-hand-side of an assignment must have a statically known size
109

1110
error: aborting due to previous error

src/test/ui/dst/dst-bad-assign-3.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ LL | f5.2 = Bar1 {f: 36};
1414
| ^^^^ doesn't have a size known at compile-time
1515
|
1616
= help: the trait `std::marker::Sized` is not implemented for `dyn ToBar`
17-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1817
= note: the left-hand-side of an assignment must have a statically known size
1918

2019
error: aborting due to 2 previous errors

src/test/ui/dst/dst-bad-assign.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ LL | f5.ptr = Bar1 {f: 36};
1414
| ^^^^^^ doesn't have a size known at compile-time
1515
|
1616
= help: the trait `std::marker::Sized` is not implemented for `dyn ToBar`
17-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1817
= note: the left-hand-side of an assignment must have a statically known size
1918

2019
error: aborting due to 2 previous errors

src/test/ui/dst/dst-bad-deep-2.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | let h: &(([isize],),) = &(*g,);
55
| ^^^^^ doesn't have a size known at compile-time
66
|
77
= help: within `(([isize],),)`, the trait `std::marker::Sized` is not implemented for `[isize]`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: required because it appears within the type `([isize],)`
109
= note: required because it appears within the type `(([isize],),)`
1110
= note: tuples must have a statically known size to be initialized

src/test/ui/dst/dst-bad-deep.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | let h: &Fat<Fat<[isize]>> = &Fat { ptr: *g };
55
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
66
|
77
= help: within `Fat<Fat<[isize]>>`, the trait `std::marker::Sized` is not implemented for `[isize]`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: required because it appears within the type `Fat<[isize]>`
109
= note: required because it appears within the type `Fat<Fat<[isize]>>`
1110
= note: structs must have a statically known size to be initialized

src/test/ui/dst/dst-object-from-unsized-type.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ LL | let u: &dyn Foo = t;
77
| ^ doesn't have a size known at compile-time
88
|
99
= help: the trait `std::marker::Sized` is not implemented for `T`
10-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1110
= note: required for the cast to the object type `dyn Foo`
1211

1312
error[E0277]: the size for values of type `T` cannot be known at compilation time
@@ -19,7 +18,6 @@ LL | let v: &dyn Foo = t as &dyn Foo;
1918
| ^ doesn't have a size known at compile-time
2019
|
2120
= help: the trait `std::marker::Sized` is not implemented for `T`
22-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2321
= note: required for the cast to the object type `dyn Foo`
2422

2523
error[E0277]: the size for values of type `str` cannot be known at compilation time
@@ -29,7 +27,6 @@ LL | let _: &[&dyn Foo] = &["hi"];
2927
| ^^^^ doesn't have a size known at compile-time
3028
|
3129
= help: the trait `std::marker::Sized` is not implemented for `str`
32-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
3330
= note: required for the cast to the object type `dyn Foo`
3431

3532
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
@@ -39,7 +36,6 @@ LL | let _: &dyn Foo = x as &dyn Foo;
3936
| ^ doesn't have a size known at compile-time
4037
|
4138
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
42-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
4339
= note: required for the cast to the object type `dyn Foo`
4440

4541
error: aborting due to 4 previous errors

src/test/ui/dst/dst-sized-trait-param.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ LL | impl Foo<[isize]> for usize { }
88
| ^^^^^^^^^^^^ doesn't have a size known at compile-time
99
|
1010
= help: the trait `std::marker::Sized` is not implemented for `[isize]`
11-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1211
help: consider relaxing the implicit `Sized` restriction
1312
|
1413
LL | trait Foo<T: ?Sized> : Sized { fn take(self, x: &T) { } } // Note: T is sized
@@ -24,7 +23,6 @@ LL | impl Foo<isize> for [usize] { }
2423
| ^^^^^^^^^^ doesn't have a size known at compile-time
2524
|
2625
= help: the trait `std::marker::Sized` is not implemented for `[usize]`
27-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2826

2927
error: aborting due to 2 previous errors
3028

src/test/ui/error-codes/E0277.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
22
--> $DIR/E0277.rs:13:6
33
|
44
LL | fn f(p: Path) { }
5-
| ^ borrow the `Path` instead
5+
| ^ doesn't have a size known at compile-time
66
|
77
= help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: required because it appears within the type `std::path::Path`
109
= note: all local variables must have a statically known size
1110
= help: unsized locals are gated as an unstable feature

src/test/ui/extern/extern-types-unsized.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ LL | assert_sized::<A>();
88
| ^ doesn't have a size known at compile-time
99
|
1010
= help: the trait `std::marker::Sized` is not implemented for `A`
11-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
1211
help: consider relaxing the implicit `Sized` restriction
1312
|
1413
LL | fn assert_sized<T: ?Sized>() { }
@@ -24,7 +23,6 @@ LL | assert_sized::<Foo>();
2423
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
2524
|
2625
= help: within `Foo`, the trait `std::marker::Sized` is not implemented for `A`
27-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
2826
= note: required because it appears within the type `Foo`
2927
help: consider relaxing the implicit `Sized` restriction
3028
|
@@ -41,7 +39,6 @@ LL | assert_sized::<Bar<A>>();
4139
| ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
4240
|
4341
= help: within `Bar<A>`, the trait `std::marker::Sized` is not implemented for `A`
44-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
4542
= note: required because it appears within the type `Bar<A>`
4643
help: consider relaxing the implicit `Sized` restriction
4744
|
@@ -58,7 +55,6 @@ LL | assert_sized::<Bar<Bar<A>>>();
5855
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
5956
|
6057
= help: within `Bar<Bar<A>>`, the trait `std::marker::Sized` is not implemented for `A`
61-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
6258
= note: required because it appears within the type `Bar<A>`
6359
= note: required because it appears within the type `Bar<Bar<A>>`
6460
help: consider relaxing the implicit `Sized` restriction

src/test/ui/extern/issue-36122-accessing-externed-dst.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | static symbol: [usize];
55
| ^^^^^^^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `[usize]`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98

109
error: aborting due to previous error
1110

src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ LL | struct TwoStrs(str, str) where str: Sized;
9595
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
9696
|
9797
= help: the trait `std::marker::Sized` is not implemented for `str`
98-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
9998
= help: see issue #48214
10099
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
101100

@@ -108,7 +107,6 @@ LL | | }
108107
| |_^ doesn't have a size known at compile-time
109108
|
110109
= help: within `Dst<(dyn A + 'static)>`, the trait `std::marker::Sized` is not implemented for `(dyn A + 'static)`
111-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
112110
= note: required because it appears within the type `Dst<(dyn A + 'static)>`
113111
= help: see issue #48214
114112
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -122,7 +120,6 @@ LL | | }
122120
| |_^ doesn't have a size known at compile-time
123121
|
124122
= help: the trait `std::marker::Sized` is not implemented for `str`
125-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
126123
= help: see issue #48214
127124
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
128125

src/test/ui/feature-gates/feature-gate-unsized_locals.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LL | fn f(f: dyn FnOnce()) {}
55
| ^ doesn't have a size known at compile-time
66
|
77
= help: the trait `std::marker::Sized` is not implemented for `(dyn std::ops::FnOnce() + 'static)`
8-
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
98
= note: all local variables must have a statically known size
109
= help: unsized locals are gated as an unstable feature
1110

0 commit comments

Comments
 (0)