diff options
| author | scalexm <martin.alex32@hotmail.fr> | 2017-08-01 21:38:52 +0200 |
|---|---|---|
| committer | scalexm <martin.alex32@hotmail.fr> | 2017-08-03 14:40:40 +0200 |
| commit | ac919d527ced593e1b199b8c5b7b8cafa3840375 (patch) | |
| tree | e9ea89d245362a79ade15d26e18ee28aec764ed4 /src/rustllvm/RustWrapper.cpp | |
| parent | 12aad38ad40f489c5700747158426adee2b732c0 (diff) | |
| download | rust-ac919d527ced593e1b199b8c5b7b8cafa3840375.tar.gz rust-ac919d527ced593e1b199b8c5b7b8cafa3840375.zip | |
Add a more precise error message
When trying to perform static dispatch on something which derefs to a trait object, and the target trait is not in scope, we had confusing error messages if the target method had a `Self: Sized` bound. We add a more precise error message in this case: "consider using trait ...". Fixes #35976.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
