Christof Leutenegger
Christof Leutenegger
If we try to coerce to an unsafe pointer ```rust fn f() {} fn main() { let g = f as unsafe fn(); } ``` We get the following error:...
Allow for using [constant `FnPtr`](https://github.com/minirust/minirust/blob/648add89ba6c2b1f030fdcb6e1e28dc5d8a43436/tooling/minimize/src/constant.rs#L40), the following fails: ```rust fn main() { let f: fn(()) -> Option = Some::; f(()); } ``` and outputs the following error message: ``` thread...
Currently a function cannot be used except for calling it ```rust fn f() {} fn main() { let _ = f; } ``` generates the following error message: ``` error:...
```rust fn f() {} fn main() { let _p = f as fn(); } ``` The local `_p` is translated to type `Ptr(FnPtr(Rust))` while `f as fn()` is translated to...
- [x] Searched existing issues to avoid creating duplicates. - [x] Confirmed that it can be reproduced in built-in themes without customized css. - [x] Searched http://support.typora.io/ ---- **Describe the...