diff options
| author | Knight <knight42@mail.ustc.edu.cn> | 2016-08-17 01:40:57 +0800 |
|---|---|---|
| committer | Knight <knight42@mail.ustc.edu.cn> | 2016-08-17 03:02:25 +0800 |
| commit | 3caa451b9db58836301dd93ffabc0fb493dd4fe7 (patch) | |
| tree | c9341bc166d635e1a73aec975459aa5ef9a91478 /src/test/compile-fail | |
| parent | d2e78956c39c1b1e94169f2a1f7cde34aef4ff96 (diff) | |
| download | rust-3caa451b9db58836301dd93ffabc0fb493dd4fe7.tar.gz rust-3caa451b9db58836301dd93ffabc0fb493dd4fe7.zip | |
Updated E0394 to new error message
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/E0394.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0394.rs b/src/test/compile-fail/E0394.rs index 1b86b8ad674..e35d038248c 100644 --- a/src/test/compile-fail/E0394.rs +++ b/src/test/compile-fail/E0394.rs @@ -9,7 +9,10 @@ // except according to those terms. static A: u32 = 0; -static B: u32 = A; //~ ERROR E0394 +static B: u32 = A; +//~^ ERROR E0394 +//~| NOTE referring to another static by value +//~| NOTE use the address-of operator or a constant instead fn main() { } |
