https://github.com/iddm/rust-bug-53635
https://github.com/iddm/rust-bug-53635
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iddm/rust-bug-53635
- Owner: iddm
- Created: 2019-09-06T16:23:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T16:43:13.000Z (almost 7 years ago)
- Last Synced: 2025-10-09T22:09:28.222Z (9 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Nightly compiler bug](https://github.com/rust-lang/rust/issues/51635)
## Description
This is an MCVE for reproducing the bug when the code is not shown which
actually causes errors. The errors itselves are shown correctly. The output
looks as this:
```
Compiling bug v0.1.0 (/home/rust/src/bug)
error[E0308]: mismatched types
|
= note: expected type `std::string::String`
found type `&'static str`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `bug`.
To learn more, run the command again with --verbose.
```
After bisection it was evident that the problem is seen on all nightly compilers up to these days, starting from nightly-2019-04-15. The versions before have not been tested as `serde` framework can't be compiled on earlier versions of the compiler. However, if it only had been possible to set the serde version less than `1.0.99`, we would have been able to bisect further.
More information can be found on the [bug page](https://github.com/rust-lang/rust/issues/51635).