diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-03-17 11:48:18 -0400 | 
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-03-30 07:55:29 -0400 | 
| commit | 1ae620bbebadbe4362a28b37bcecd41cfed66cea (patch) | |
| tree | 9acf3cbd13242401e66ce902d37510540c40599d /src/test/compile-fail/index-bot.rs | |
| parent | 4967f1ae57120b02639f3d1493e8f0c9e168b0dc (diff) | |
| download | rust-1ae620bbebadbe4362a28b37bcecd41cfed66cea.tar.gz rust-1ae620bbebadbe4362a28b37bcecd41cfed66cea.zip | |
do not eagerly convert `!` to a diverging variable
Instead, wait until coercion time. This has some small effects on a few tests (one less temporary, generally better errors when trying to call methods or otherwise "force" the type).
Diffstat (limited to 'src/test/compile-fail/index-bot.rs')
| -rw-r--r-- | src/test/compile-fail/index-bot.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/test/compile-fail/index-bot.rs b/src/test/compile-fail/index-bot.rs index 70c362303ae..05b04723300 100644 --- a/src/test/compile-fail/index-bot.rs +++ b/src/test/compile-fail/index-bot.rs @@ -9,5 +9,5 @@ // except according to those terms. fn main() { - (return)[0]; //~ ERROR the type of this value must be known in this context + (return)[0]; //~ ERROR cannot index a value of type `!` } | 
