]> git.lizzy.rs Git - rust.git/commitdiff
Update rustdoc test
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 4 Sep 2018 14:09:30 +0000 (16:09 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Thu, 25 Oct 2018 14:47:35 +0000 (16:47 +0200)
src/test/rustdoc/const-evalutation-ice.rs

index 000ed709a8aaeac1d392d60d14e2c59a7999ded5..5675f61bd4b0dc340eb64f23f9bee8f8710aa8bc 100644 (file)
@@ -17,4 +17,4 @@ pub struct S {
     s: Cell<usize>
 }
 
-pub type _S = [usize; 0 - (mem::size_of::<S>() != 4) as usize];
+pub const N: usize = 0 - (mem::size_of::<S>() != 4) as usize;