diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-12-10 01:10:05 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-02-12 19:24:41 +1100 |
| commit | b5235ea732dcb517338eaf2e35fda8ddcf515771 (patch) | |
| tree | b89521e4aabc17cb3392650d8258a0de9e24de36 /src/test/ui/static | |
| parent | f7f0f843b70f1b6c4ac9e22789d93d7bf5569dc3 (diff) | |
| download | rust-b5235ea732dcb517338eaf2e35fda8ddcf515771.tar.gz rust-b5235ea732dcb517338eaf2e35fda8ddcf515771.zip | |
bless you
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/static-vec-repeat-not-constant.stderr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/static/static-vec-repeat-not-constant.stderr b/src/test/ui/static/static-vec-repeat-not-constant.stderr index ef98aa546eb..84fc638a973 100644 --- a/src/test/ui/static/static-vec-repeat-not-constant.stderr +++ b/src/test/ui/static/static-vec-repeat-not-constant.stderr @@ -1,8 +1,10 @@ -error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants +error[E0015]: cannot call non-const fn `foo` in statics --> $DIR/static-vec-repeat-not-constant.rs:3:25 | LL | static a: [isize; 2] = [foo(); 2]; | ^^^^^ + | + = note: calls in statics are limited to constant functions, tuple structs and tuple variants error: aborting due to previous error |
