diff options
Diffstat (limited to 'tests/rustdoc/tuple-struct-where-clause-34928.rs')
-rw-r--r-- | tests/rustdoc/tuple-struct-where-clause-34928.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc/tuple-struct-where-clause-34928.rs b/tests/rustdoc/tuple-struct-where-clause-34928.rs new file mode 100644 index 000000000..909b91468 --- /dev/null +++ b/tests/rustdoc/tuple-struct-where-clause-34928.rs @@ -0,0 +1,8 @@ +#![crate_name = "foo"] + +// https://github.com/rust-lang/rust/issues/34928 + +pub trait Bar {} + +// @has foo/struct.Foo.html '//pre' 'pub struct Foo<T>(pub T) where T: Bar;' +pub struct Foo<T>(pub T) where T: Bar; |