Skip to content

chumsky-0.10.0: the parameter type T may not live long enough #194

Closed
rust-lang/rust
#140672
@lcnr

Description

@lcnr
[INFO] [stdout] error[E0311]: the parameter type `T` may not live long enough
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chumsky-0.10.0/src/private.rs:271:49
[INFO] [stdout]     |
[INFO] [stdout] 271 |     fn from_mut<T>(_r: &mut Self::Output<T>) -> Self::Output<&mut T> {}
[INFO] [stdout]     |                        --------------------     ^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        the parameter type `T` must be valid for the anonymous lifetime defined here...
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding an explicit lifetime bound
[INFO] [stdout]     |
[INFO] [stdout] 271 |     fn from_mut<'a, T: 'a>(_r: &'a mut Self::Output<T>) -> Self::Output<&'a mut T> {}
[INFO] [stdout]     |                 +++  ++++       ++                                       ++

Metadata

Metadata

Labels

from-craterA regression found via a crater run, not part of our test suite

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions