diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2015-06-28 10:36:46 -0700 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2015-07-24 19:17:45 -0700 |
| commit | 8ebf95257bfc9093cb25dba209ded303ec167e5f (patch) | |
| tree | aaaf49abe71d1d2255b4a1c5ee23e0f85e64b0d3 /src/test/compile-fail/const-recursive.rs | |
| parent | 82d40cb2ba44a27b7db8ec185b5c532237db4b3e (diff) | |
| download | rust-8ebf95257bfc9093cb25dba209ded303ec167e5f.tar.gz rust-8ebf95257bfc9093cb25dba209ded303ec167e5f.zip | |
Allow recursive static variables.
There isn't any particularly good reason for this restriction, so just get rid of it, and fix trans to handle this case.
Diffstat (limited to 'src/test/compile-fail/const-recursive.rs')
| -rw-r--r-- | src/test/compile-fail/const-recursive.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/compile-fail/const-recursive.rs b/src/test/compile-fail/const-recursive.rs index ad05c7c423f..7c05a817243 100644 --- a/src/test/compile-fail/const-recursive.rs +++ b/src/test/compile-fail/const-recursive.rs @@ -8,9 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// error-pattern: recursive constant -static a: isize = b; -static b: isize = a; +const a: isize = b; //~ ERROR recursive constant +const b: isize = a; //~ ERROR recursive constant fn main() { } |
