about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-08-24 16:44:34 +0800
committerGitHub <noreply@github.com>2018-08-24 16:44:34 +0800
commit714e5b3c4663c353b8bb69a7276664d7b1b04c29 (patch)
treee28c6951599680c1b8817b615c50086041cbf18f
parent7f396bad9e72d1102f4a2656d148a557a73d05f1 (diff)
parentb188c2a4eb7a3eede8477e3fbeaea623fc256586 (diff)
downloadrust-714e5b3c4663c353b8bb69a7276664d7b1b04c29.tar.gz
rust-714e5b3c4663c353b8bb69a7276664d7b1b04c29.zip
Rollup merge of #53562 - varkor:bastion-of-the-turbofish, r=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](https://github.com/rust-lang/rust/pull/53511) if generic arguments were accepted without disambiguation, making for [confusing and heartbreaking circumstances](https://github.com/rust-lang/rfcs/pull/2527).
-rw-r--r--src/test/ui/bastion-of-the-turbofish.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/bastion-of-the-turbofish.rs b/src/test/ui/bastion-of-the-turbofish.rs
index bd789737552..eadd2389609 100644
--- a/src/test/ui/bastion-of-the-turbofish.rs
+++ b/src/test/ui/bastion-of-the-turbofish.rs
@@ -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));