aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/init-missing-late-resources.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfail/init-missing-late-resources.rs')
-rw-r--r--tests/cfail/init-missing-late-resources.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/cfail/init-missing-late-resources.rs b/tests/cfail/init-missing-late-resources.rs
new file mode 100644
index 00000000..cec18bab
--- /dev/null
+++ b/tests/cfail/init-missing-late-resources.rs
@@ -0,0 +1,17 @@
+#![no_main]
+#![no_std]
+
+extern crate lm3s6965;
+extern crate panic_halt;
+extern crate rtfm;
+
+use rtfm::app;
+
+#[app(device = lm3s6965)]
+const APP: () = {
+ static mut X: i32 = ();
+
+ #[init]
+ fn init(_: init::Context) {}
+ //~^ error: late resources have been specified so `init` must return `init::LateResources`
+};
arred/linux'>jarred/linux Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/react-fast-refresh-test/src (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-11-24deps: add missing mimalloc dep to jsc bindings header generatorGravatar Kenta Iwasaki 2-2/+3
2021-11-24deps: build picohttp and mimalloc using zigGravatar Kenta Iwasaki 2-131/+123
2021-11-23update Next version on globalGravatar Jack Hanford 1-1/+1
2021-11-23Update build-idGravatar Jarred Sumner 1-1/+1
2021-11-23fix shallow routingGravatar Jack Hanford 1-4/+6
2021-11-23remove commentGravatar Jack Hanford 1-1/+0
2021-11-23add react-dom as devDepGravatar Jack Hanford 1-0/+1
2021-11-23stop installing textencoderGravatar Jack Hanford 3-2/+308
2021-11-23begin addressing more feedbackGravatar Jack Hanford 1-3/+3
2021-11-22remove .thenGravatar Jack Hanford 1-12/+3
2021-11-22another tryGravatar Jack Hanford 2-5/+1
2021-11-22add type fnsGravatar Jack Hanford 1-1/+4