diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-04-05 09:50:04 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-04-05 09:55:56 -0700 |
| commit | 44e414c4770ff0800c375ddbb8e0f46ee00bcab1 (patch) | |
| tree | f6b823912249f4cd632348bc2414c42cb0e8d69c /src/test/parse-fail | |
| parent | 5309a3e31d88def1f3ea966162ed4f81f161d500 (diff) | |
| download | rust-44e414c4770ff0800c375ddbb8e0f46ee00bcab1.tar.gz rust-44e414c4770ff0800c375ddbb8e0f46ee00bcab1.zip | |
Use proper span for tuple index parsed as float
Fix diagnostic suggestion from: ```rust help: try parenthesizing the first index | (1, (2, 3)).((1, (2, 3)).1).1; ``` to the correct: ```rust help: try parenthesizing the first index | ((1, (2, 3)).1).1; ```
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/tuple-float-index.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/parse-fail/tuple-float-index.rs b/src/test/parse-fail/tuple-float-index.rs deleted file mode 100644 index 57ad89ad374..00000000000 --- a/src/test/parse-fail/tuple-float-index.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -// compile-flags: -Z parse-only - -fn main () { - (1, (2, 3)).1.1; //~ ERROR unexpected token - //~^ HELP try parenthesizing the first index - //~| SUGGESTION ((1, (2, 3)).1).1 -} |
