diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-18 17:11:12 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-03 23:09:42 +0000 |
| commit | c566318a782030a33f370d7490d7bdac9d8bfca4 (patch) | |
| tree | 70d1ff9f85e6e78c9ad77bca31734c6724d1485f /tests/ui/statics | |
| parent | e16a049adbf94d610787430b6efdf31d896dc5b6 (diff) | |
| download | rust-c566318a782030a33f370d7490d7bdac9d8bfca4.tar.gz rust-c566318a782030a33f370d7490d7bdac9d8bfca4.zip | |
Tweak error code for sized checks of const/static
Diffstat (limited to 'tests/ui/statics')
| -rw-r--r-- | tests/ui/statics/unsized_type2.stderr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/statics/unsized_type2.stderr b/tests/ui/statics/unsized_type2.stderr index ffbbe218c87..3f9b0879c16 100644 --- a/tests/ui/statics/unsized_type2.stderr +++ b/tests/ui/statics/unsized_type2.stderr @@ -10,6 +10,7 @@ note: required because it appears within the type `Foo` | LL | pub struct Foo { | ^^^ + = note: statics and constants must have a statically known size error[E0308]: mismatched types --> $DIR/unsized_type2.rs:14:45 |
