You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to get a string slice in a pattern when pattern matching yields the following: "error: internal compiler error: ident only path should have been covered already." As an example, do consider the following code: http://is.gd/cuYVtu
structTest(String);fnmain(){let x = Test(format!("foo"));letTest(&desc[..]) = x;}
I expected a less serious error, as this was by accident, I intended to do something different. The version I am using is: rustc 1.0.0-dev (ecf8c64 2015-03-21) (built 2015-03-22).
The text was updated successfully, but these errors were encountered:
Fixes#22757Fixes#22972Fixes#23044Fixes#23151Fixes#23597Fixes#23656Fixes#23929
It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after `...`.
It passes `make check` but needs some additional tests (then it will fix#22546 as well), I'll write them today or tomorrow.
Attempting to get a string slice in a pattern when pattern matching yields the following: "error: internal compiler error: ident only path should have been covered already." As an example, do consider the following code:
http://is.gd/cuYVtu
I expected a less serious error, as this was by accident, I intended to do something different. The version I am using is: rustc 1.0.0-dev (ecf8c64 2015-03-21) (built 2015-03-22).
The text was updated successfully, but these errors were encountered: