diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr')
-rw-r--r-- | src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr b/src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr deleted file mode 100644 index b77c8c7fd..000000000 --- a/src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr +++ /dev/null @@ -1,112 +0,0 @@ -error[E0277]: the size for values of type `T` cannot be known at compilation time - --> $DIR/adt-param-with-implicit-sized-bound.rs:25:9 - | -LL | struct Struct5<T: ?Sized>{ - | - this type parameter needs to be `std::marker::Sized` -LL | _t: X<T>, - | ^^^^ doesn't have a size known at compile-time - | -note: required by a bound in `X` - --> $DIR/adt-param-with-implicit-sized-bound.rs:18:10 - | -LL | struct X<T>(T); - | ^ required by this bound in `X` -help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>` - --> $DIR/adt-param-with-implicit-sized-bound.rs:18:10 - | -LL | struct X<T>(T); - | ^ - ...if indirection were used here: `Box<T>` - | | - | this could be changed to `T: ?Sized`... -help: consider removing the `?Sized` bound to make the type parameter `Sized` - | -LL - struct Struct5<T: ?Sized>{ -LL + struct Struct5<T>{ - | - -error[E0277]: the size for values of type `Self` cannot be known at compilation time - --> $DIR/adt-param-with-implicit-sized-bound.rs:2:19 - | -LL | fn func1() -> Struct1<Self>; - | ^^^^^^^^^^^^^ doesn't have a size known at compile-time - | -note: required by a bound in `Struct1` - --> $DIR/adt-param-with-implicit-sized-bound.rs:8:16 - | -LL | struct Struct1<T>{ - | ^ required by this bound in `Struct1` -help: consider further restricting `Self` - | -LL | fn func1() -> Struct1<Self> where Self: Sized; - | +++++++++++++++++ -help: consider relaxing the implicit `Sized` restriction - | -LL | struct Struct1<T: ?Sized>{ - | ++++++++ - -error[E0277]: the size for values of type `Self` cannot be known at compilation time - --> $DIR/adt-param-with-implicit-sized-bound.rs:3:23 - | -LL | fn func2<'a>() -> Struct2<'a, Self>; - | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time - | -note: required by a bound in `Struct2` - --> $DIR/adt-param-with-implicit-sized-bound.rs:11:20 - | -LL | struct Struct2<'a, T>{ - | ^ required by this bound in `Struct2` -help: consider further restricting `Self` - | -LL | fn func2<'a>() -> Struct2<'a, Self> where Self: Sized; - | +++++++++++++++++ -help: consider relaxing the implicit `Sized` restriction - | -LL | struct Struct2<'a, T: ?Sized>{ - | ++++++++ - -error[E0277]: the size for values of type `Self` cannot be known at compilation time - --> $DIR/adt-param-with-implicit-sized-bound.rs:4:19 - | -LL | fn func3() -> Struct3<Self>; - | ^^^^^^^^^^^^^ doesn't have a size known at compile-time - | -note: required by a bound in `Struct3` - --> $DIR/adt-param-with-implicit-sized-bound.rs:14:16 - | -LL | struct Struct3<T>{ - | ^ required by this bound in `Struct3` -help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>` - --> $DIR/adt-param-with-implicit-sized-bound.rs:14:16 - | -LL | struct Struct3<T>{ - | ^ this could be changed to `T: ?Sized`... -LL | _t: T, - | - ...if indirection were used here: `Box<T>` -help: consider further restricting `Self` - | -LL | fn func3() -> Struct3<Self> where Self: Sized; - | +++++++++++++++++ - -error[E0277]: the size for values of type `Self` cannot be known at compilation time - --> $DIR/adt-param-with-implicit-sized-bound.rs:5:19 - | -LL | fn func4() -> Struct4<Self>; - | ^^^^^^^^^^^^^ doesn't have a size known at compile-time - | -note: required by a bound in `Struct4` - --> $DIR/adt-param-with-implicit-sized-bound.rs:20:16 - | -LL | struct Struct4<T>{ - | ^ required by this bound in `Struct4` -help: consider further restricting `Self` - | -LL | fn func4() -> Struct4<Self> where Self: Sized; - | +++++++++++++++++ -help: consider relaxing the implicit `Sized` restriction - | -LL | struct Struct4<T: ?Sized>{ - | ++++++++ - -error: aborting due to 5 previous errors - -For more information about this error, try `rustc --explain E0277`. |