diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-13 18:12:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 18:12:36 +0100 |
| commit | fceb16911ee412e84f5c0f424fca4ad93b4df4b0 (patch) | |
| tree | 3bf608b9a3b597becf2240d021fe333da5db76a7 /src/test/incremental | |
| parent | 8a4f8e6adcfdb5289f35a9f1049089e4dba1efb6 (diff) | |
| parent | ddb6c4f8999f12edc2853e02082987234c11fbc5 (diff) | |
| download | rust-fceb16911ee412e84f5c0f424fca4ad93b4df4b0.tar.gz rust-fceb16911ee412e84f5c0f424fca4ad93b4df4b0.zip | |
Rollup merge of #58386 - Zoxc:fix-54242, r=michaelwoerister
Fix #54242 r? @michaelwoerister
Diffstat (limited to 'src/test/incremental')
| -rw-r--r-- | src/test/incremental/issue-54242.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/incremental/issue-54242.rs b/src/test/incremental/issue-54242.rs new file mode 100644 index 00000000000..1c700d44dd8 --- /dev/null +++ b/src/test/incremental/issue-54242.rs @@ -0,0 +1,17 @@ +// revisions: rpass cfail + +trait Tr { + type Arr; + + const C: usize = 0; +} + +impl Tr for str { + #[cfg(rpass)] + type Arr = [u8; 8]; + #[cfg(cfail)] + type Arr = [u8; Self::C]; + //[cfail]~^ ERROR cycle detected when const-evaluating +} + +fn main() {} |
