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 439e72e commit 7275dfbCopy full SHA for 7275dfb
tests/allow_missing.rs
@@ -0,0 +1,11 @@
1
+use rust_embed::Embed;
2
+
3
+#[derive(Embed)]
4
+#[folder = "examples/missing/"]
5
+#[allow_missing = true]
6
+struct Asset;
7
8
+#[test]
9
+fn missing_is_empty() {
10
+ assert_eq!(Asset::iter().count(), 0);
11
+}
0 commit comments