-
No idea if it's related to https://github.com/rust-lang/rust/issues/84970 if the compiler still asked me to fill out a bug report.
### Code
```Rust
```
### Meta
`rustc --version…
-
Hello,
I was trying differents things with Future and callbacks - to be more precise, I am trying to store an asynchronous callback inside an asynchronous struct.
In my attempts, I found an unexpec…
-
### Code
```Rust
fn get_iter(vec: &[i32]) -> impl Iterator + '_ {
vec.iter()
}
fn main() {
let vec = Vec::new();
let mut iter = get_iter(&vec);
iter.next();
}
```
…
-
I tried this code:
```rust
#![feature(const_trait_impl)]
#![feature(fn_traits)]
#![feature(unboxed_closures)]
struct Closure;
impl const FnOnce for Closure {
type Output = usize;
…
-
Repro steps: create a new cargo binary with `cargo new`. Replace `src/main.rs` with the following code. Then run `cargo build`. Hope this is helpful! I've tried to minimize the code as much as possibl…
-
Hello Rust Maintainers!
I ran into this bug on nightly:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=2efc38c82d9d4b8ae0297447bbec9acf
### Code
```Rust
async fn a…
-
### Code
```Rust
pub struct MyStruct(field: &'a[u32]) -> MyStruct
-
### Code
```Rust
use std::{sync::{mpsc, Arc, Mutex}, thread, time::Duration, rc::Rc};
fn main() {
let m = Mutex::new(String::from("hello"));
let (tx, rx) = mpsc::channel();
l…
-
### Code
**Here's MCVE: https://github.com/rust-lang/rust/issues/72793#issuecomment-637043261** (Edited by JohnTitor)
```Rust
#![feature(type_alias_impl_trait)]
type FilteredIter + 'a;
…
-
In the project linked below, changing a specific field to have a different name will ice the compiler. `cargo check` passes, but `cargo run` / `cargo build` will fail.
If you run `cargo clean` the …