You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc test.rs -o test-test --test
test.rs:122:17: 122:28 error: cannot infer an appropriate lifetime due to conflicting requirements
test.rs:122 _ => &mut self.z
^~~~~~~~~~~
test.rs:121:17: 121:28 note: first, the lifetime must be contained by the expression at 121:17...
test.rs:121 1 => &mut self.y,
^~~~~~~~~~~
test.rs:121:17: 121:28 note: ...due to the following expression
test.rs:121 1 => &mut self.y,
^~~~~~~~~~~
test.rs:120:17: 120:28 note: but, the lifetime must also be contained by the expression at 120:17...
test.rs:120 0 => &mut self.x,
^~~~~~~~~~~
test.rs:120:17: 120:28 note: ...due to the following expression
test.rs:120 0 => &mut self.x,
^~~~~~~~~~~
error: aborting due to previous error
make: *** [test-test] Error 101
The commented version that is using if statements does compile correctly.
I haven't tried yet with very latest build, so I'm not sure whether the problem is still there with rust 0.7
cheers,
Rémi
The text was updated successfully, but these errors were encountered:
Rollup of 3 pull requests
Successful merges:
- rust-lang#7279 (Adapting the lint list to Clippy's new metadata format)
- rust-lang#7298 (Switch CI to new metadata collection)
- rust-lang#7420 (Update lint documentation to use markdown headlines)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
changelog: rollup
flip1995
added a commit
to flip1995/rust
that referenced
this issue
Nov 4, 2021
following code does not compile:
I get following errors:
The commented version that is using if statements does compile correctly.
I haven't tried yet with very latest build, so I'm not sure whether the problem is still there with rust 0.7
cheers,
Rémi
The text was updated successfully, but these errors were encountered: