-
I tried this code:
```rust
trait LendingIterator {
type Item Option>
where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
{
type Item
where
Self: 'me;
…
-
This issue has the purpose of tracking the currently used unstable features.
- `backtrace` in `asphalt-core`:
- Used inside `Error`, we could replace with the `backtrace` crate if necessary.
-…
-
**问题描述**
在`LinkedList` trait的方法的默认实现中,我们可能会多次声明可变游标。但在目前采用的实现(#24)中,由于不能使用GAT(generic associated types),我们只能将游标的生命期定义在`trait`的声明中,并在关联类型中限定了游标的生命期,这导致任何创建游标的方法的生命期受限于整个`trait`的生命期声明,因此其它方法中游标生命期不短于整个…
-
I would like to propose adding a `unwrap_infallible` associated function to `core::result::Result`. The purpose is to convert `Result` to a `T`, as the error case is impossible.
The implementation …
-
Main issue: #8629
In an interface declaration, when is it OK to omit the return type of a required function? Should a generic return type be regulated by the same rules as an omitted return type?
…
-
I tried this code:
```
% mount | grep /dev/[ns]
/dev/nvme0n1p6 on / type ext4 (rw,noatime,errors=remount-ro)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/nvme0n1p1 on /boot/efi type …
-
### Component
provider
### Describe the feature you would like
At this moment, `Provider` trait looks a bit weird:
https://github.com/alloy-rs/alloy/blob/cb95183d477024b57b27336035d10403e8ba…
i1i1 updated
6 months ago
-
### Code
```Rust
#![feature(generic_const_exprs)]
const fn t() -> u8 {
N as u8
}
#[repr(u8)]
enum T
where
[(); N as usize]:
{
A = t::() as u8, B
}
```
before #11…
-
Here's the list of the Rust compiler errors that the compiler can emit according to https://doc.rust-lang.org/error-index.html. All old errors (i.e. marked with `Note: this error code is no longer emi…
-
### Summary of Problem
A few uses of a scoped enum with an offset fail to compile, when I
think they should work.
### Steps to Reproduce
**Source Code:**
[ edit 7/19/2024 cassella -- only…