Skip to content

Commit

Permalink
Rollup merge of rust-lang#53562 - varkor:bastion-of-the-turbofish, r=…
Browse files Browse the repository at this point in the history
…nagisa

Lament the invincibility of the Turbofish

Here a test case is added to ensure that any others attempting to drive the Turbofish to extinction have second thoughts. Previously the [entire test suite would succeed](rust-lang#53511) if generic arguments were accepted without disambiguation, making for [confusing and heartbreaking circumstances](rust-lang/rfcs#2527).
  • Loading branch information
Mark-Simulacrum committed Aug 22, 2018
2 parents 2c0ff41 + b188c2a commit 3da92a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/ui/bastion-of-the-turbofish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
// My heart aches in sorrow, for I know I am defeated. Let this be a warning
// to all those who come after. Here stands the bastion of the Turbofish.

// See https://github.com/rust-lang/rust/pull/53562
// and https://github.com/rust-lang/rfcs/pull/2527
// for context.

fn main() {
let (oh, woe, is, me) = ("the", "Turbofish", "remains", "undefeated");
let _: (bool, bool) = (oh<woe, is>(me));
Expand Down

0 comments on commit 3da92a0

Please sign in to comment.