From 3595cf34b9520b7e548972dec8b787d80ecd0049 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Aug 2022 20:18:04 +0200 Subject: first grammar issues --- content/articles/2022-08-29-blog-test.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'content/articles') diff --git a/content/articles/2022-08-29-blog-test.md b/content/articles/2022-08-29-blog-test.md index cdbeab0..1c4a28a 100644 --- a/content/articles/2022-08-29-blog-test.md +++ b/content/articles/2022-08-29-blog-test.md @@ -11,15 +11,23 @@ _italic_ **bold** `code` [Link](https://metamuffin.org/) Look at this code here. ```rs +#[derive(Default)] struct Impossible { something: HashMap, + // ^- look here, a keyword! --the grammar regex itself: Impossible, } pub async fn useless(s: Box) -> impl Future { todo!() // this panics } -fn main() { 1 + "blub" } +fn main() { + 1 + "blub" + for (x, y) in [(1,2),(3,4)] { + println!("{x} and {y}"); + Impossible::default(); + } +} ``` As you can see, its pointless i.e. no points -- cgit v1.2.3-70-g09d2