about summary refs log tree commit diff
path: root/src/test/rustdoc/auxiliary
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-12-24 12:48:57 +0000
committerbors <bors@rust-lang.org>2017-12-24 12:48:57 +0000
commit304717bd86e42bc9b0c45ea5a6068e7ed9d13f2f (patch)
treef3e9a4cba12614ab780040240f7a9d587d92c9b7 /src/test/rustdoc/auxiliary
parent4ce6b9a770ea9bbe2747b2cdbf6ffcde7ceb6469 (diff)
parentd10d3892256648d70472630416b9592d6a232662 (diff)
downloadrust-304717bd86e42bc9b0c45ea5a6068e7ed9d13f2f.tar.gz
rust-304717bd86e42bc9b0c45ea5a6068e7ed9d13f2f.zip
Auto merge of #46894 - detrumi:fix-const-eval-trait, r=eddyb
Const-eval array lengths in rustdoc.

Fixes #46727
r? @eddyb

Big thanks to @eddyb for helping me figure this out.
Diffstat (limited to 'src/test/rustdoc/auxiliary')
-rw-r--r--src/test/rustdoc/auxiliary/issue-46727.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/issue-46727.rs b/src/test/rustdoc/auxiliary/issue-46727.rs
new file mode 100644
index 00000000000..f0869f016e6
--- /dev/null
+++ b/src/test/rustdoc/auxiliary/issue-46727.rs
@@ -0,0 +1,17 @@
+// 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.
+
+// compile-flags: -Cmetadata=aux
+
+pub trait Foo {}
+
+pub struct Bar<T> { x: T }
+
+impl<T> Foo for Bar<[T; 1 + 1 + 1]> {}