]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type_length_limit.rs
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / type_length_limit.rs
index c1f3acbecf95fab10c3f676cb6b4ce4e9e8f355a..ce6fdf811213f905513b0448b7058958c20e89d9 100644 (file)
@@ -1,8 +1,10 @@
 // build-fail
 // error-pattern: reached the type-length limit while instantiating
+// compile-flags: -Copt-level=0
 // normalize-stderr-test: ".nll/" -> "/"
 
 // Test that the type length limit can be changed.
+// The exact type depends on optimizations, so disable them.
 
 #![allow(dead_code)]
 #![type_length_limit="4"]