We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9f96c commit e1f9b53Copy full SHA for e1f9b53
tests/compile-fail/static_is_sized.rs
@@ -0,0 +1,10 @@
1
+#[macro_use]
2
+extern crate lazy_static;
3
+
4
+lazy_static! {
5
+ pub static ref FOO: str = panic!();
6
+}
7
+//^ ERROR `str` does not have a constant size known at compile-time
8
9
+fn main() {
10
0 commit comments