]> git.lizzy.rs Git - rust.git/commit
Improve display of error E0308 for structs
authorJosh Leeb-du Toit <josh.leebdutoit@gmail.com>
Sat, 28 Oct 2017 23:44:05 +0000 (10:44 +1100)
committerJosh Leeb-du Toit <josh.leebdutoit@gmail.com>
Tue, 31 Oct 2017 23:21:26 +0000 (10:21 +1100)
commit87c951da0f36405ee9d7226f63a7208c58a16d07
treeb9ae84b95e7e0595bb0228ab1c768ae0e3ba5797
parent875ec8d597eefbd1fb3c040d100ec03d8f66f445
Improve display of error E0308 for structs

Improve the display of error E0308 for structs by adding a "did you
mean" span label.
src/librustc/infer/error_reporting/mod.rs
src/test/ui/issue-35241.rs [new file with mode: 0644]
src/test/ui/issue-35241.stderr [new file with mode: 0644]