diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-07-20 17:33:45 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-07-20 17:33:45 +0000 |
| commit | 8464396a19da9cbba15a815eaa7448a2fc3b5fa8 (patch) | |
| tree | cdf72a9d6a7c0508adbb8d9b390a56c1cd5a2e52 /src/test/ui | |
| parent | d695a497bbf4b20d2580b75075faa80230d41667 (diff) | |
Fix hack that remaps env constness.
WARNING: might have perf implications. Are there any more problems with having a constness in the `ParamEnv` now? :)
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/unsized/issue-30355.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/unsized/issue-30355.stderr | 16 |
2 files changed, 1 insertions, 16 deletions
diff --git a/src/test/ui/unsized/issue-30355.rs b/src/test/ui/unsized/issue-30355.rs index 01811090503..6ff5b37f6e5 100644 --- a/src/test/ui/unsized/issue-30355.rs +++ b/src/test/ui/unsized/issue-30355.rs @@ -4,7 +4,6 @@ pub static Y: &'static X = { const Y: &'static [u8] = b""; &X(*Y) //~^ ERROR E0277 - //~| ERROR E0277 }; fn main() {} diff --git a/src/test/ui/unsized/issue-30355.stderr b/src/test/ui/unsized/issue-30355.stderr index 62b6007a15a..71bbdf5dec7 100644 --- a/src/test/ui/unsized/issue-30355.stderr +++ b/src/test/ui/unsized/issue-30355.stderr @@ -8,20 +8,6 @@ LL | &X(*Y) = note: all function arguments must have a statically known size = help: unsized fn params are gated as an unstable feature -error[E0277]: the size for values of type `[u8]` cannot be known at compilation time - --> $DIR/issue-30355.rs:5:6 - | -LL | &X(*Y) - | ^ doesn't have a size known at compile-time - | - = help: within `X`, the trait `Sized` is not implemented for `[u8]` -note: required because it appears within the type `X` - --> $DIR/issue-30355.rs:1:12 - | -LL | pub struct X([u8]); - | ^ - = note: the return type of a function must have a statically known size - -error: aborting due to 2 previous errors +error: aborting due to previous error For more information about this error, try `rustc --explain E0277`. |
