diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-22 15:34:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-22 15:34:18 -0700 |
| commit | ab734210f0767ac5d5e9a9038d77ab5410653104 (patch) | |
| tree | 32ee4eb3dfc843602483f017494e422e773b5591 /src/test/compile-fail | |
| parent | 3c5a0fa45b5e2786b6e64e27f48cd129e7aefdbd (diff) | |
| parent | bfbdff0e2d894cf1f88e93df864b2c02e940a99a (diff) | |
| download | rust-ab734210f0767ac5d5e9a9038d77ab5410653104.tar.gz rust-ab734210f0767ac5d5e9a9038d77ab5410653104.zip | |
Rollup merge of #35360 - medzin:E0388, r=jonathandturner
Updated error message E0388 Fixes #35339 as part of #35233. r? @GuillaumeGomez
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/E0017.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/E0017.rs b/src/test/compile-fail/E0017.rs index 1223a01cbcb..44d2f158d20 100644 --- a/src/test/compile-fail/E0017.rs +++ b/src/test/compile-fail/E0017.rs @@ -20,6 +20,7 @@ static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017 //~| ERROR E0017 //~| NOTE statics require immutable values //~| ERROR E0388 + //~| NOTE cannot write data in a static definition static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017 //~| NOTE statics require immutable values //~| ERROR E0017 |
