-
The following code does not compile:
```rust
fn function(x: &i32) -> &i32 { x } // ok
let closure = |x: &i32| -> &i32 { x }; // fails
```
Output:
```
error: lifetime may not live long enough
…
-
```console
$ cat a.rs
pub static F: fn() = f::;
pub fn f() {}
$ cat b.rs
static F: fn() = a::F;
fn main() {
assert_eq!(a::F, crate::F);
}
$ rustc --edition=2018 -O --crate-type=lib a.rs…
-
### Aim
```rs
use dep::std::collections::map::HashMap;
use dep::std::hash::poseidon2::Poseidon2Hasher;
use dep::std::hash::BuildHasherDefault;
global MAP: HashMap = {
let mut map = HashMap…
-
### Code
```Rust
pub fn into_vec) {
let _f = dummy.prepare();
}
pub fn test() {
into_vec(Assume(Some("test")));
}
pub trait FromRow;
fn prepare(self) -> impl for Self::O…
-
**Describe the bug**
Hunspell appears to be non-deterministic, at times some words are found to be spelling mistakes - rightfully so - yet others
**To Reproduce**
Steps to reproduce the behav…
-
It seems right now using Gluon makes my executable over 4 MB larger. This is compared to about 1.7 MB for Guile or about 300 KB for Lua. I am curious if you know specifically what makes Gluon so much …
-
Since #1 went a bit off the rails towards API, let's continue here.
-
on requirements-machine
```
extension Optional where T: Movable {
public fun postfix!() sink -> T {
if let r: T = self { return r }
else { fatal_error("force unwrapping nil") }
}
…
-
Major
* 💀 No type polymorphic effect operations (no rank-2 types in Mlton)
* 💀 ~No polymorphic evidence answer types (no rank-2 types in Mlton)~ (addressed by #229 )
* 💀 ~Evidence monomorphization …
-
I tried this code ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=4c66b2f455d1d8e600ba92650cb8a772)):
```rust
fn closure_ret_closure T>(f: T) -> T {
f()…