-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When using the syntax + use <>
or + use<'_>
in return impl position -> impl Display + use <'_> {
, cargo insta review
fails with the output error: expected identifier
.
Reproduction steps
- Use the syntax
+ use <'_>
in return impl position in any function, and add an insta assertion in the same file.
fn f(x: &i8) -> impl std::fmt::Display + use<'_> { x }
#[test]
fn it_does_not_work() {
insta::assert_snapshot!(f(&8), @"");
}
- Run
cargo test
, it shows the correct diff. - Run
cargo insta review
. The aforementioned error message is printed.
Insta Version
insta = "1.43.1"
rustc Version
rustc 1.86.0
What did you expect?
To be able to automagically update the snapshot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working