about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-06 09:22:16 +0000
committerbors <bors@rust-lang.org>2018-01-06 09:22:16 +0000
commit90e019bacd9e5d231e5292b393269ce7ada4940d (patch)
tree7328c14fc2cc9df97f3c102c0bbeb5e326d89fe9 /src/test/rustdoc
parentfdc6ca44c37e58be4064f44977515c66f4e07262 (diff)
parent077ba8a7991ed3706cb2ebe2982607402a86f618 (diff)
downloadrust-90e019bacd9e5d231e5292b393269ce7ada4940d.tar.gz
rust-90e019bacd9e5d231e5292b393269ce7ada4940d.zip
Auto merge of #47083 - CAD97:issue-46976, r=nikomatsakis
Issue 46976

ICE is due to an empty path segments, so I set the path to be the same as the in band ty params symbol. (I think this is how regular generics end up being handled?)

Pinging @cramertj, this is your code I'm editing here.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-46976.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-46976.rs b/src/test/rustdoc/issue-46976.rs
new file mode 100644
index 00000000000..0df80fe3bd7
--- /dev/null
+++ b/src/test/rustdoc/issue-46976.rs
@@ -0,0 +1,12 @@
+// Copyright 2017 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.
+
+#![feature(universal_impl_trait)]
+pub fn ice(f: impl Fn()) {}