rust/tests/rustdoc/where-sized.rs

7 lines
238 B
Rust
Raw Normal View History

#![crate_name = "foo"]
//@ has foo/fn.foo.html
//@ has - '//pre[@class="rust item-decl"]' 'pub fn foo<X, Y: ?Sized>(_: &X)'
//@ has - '//pre[@class="rust item-decl"]' 'where X: ?Sized,'
pub fn foo<X, Y: ?Sized>(_: &X) where X: ?Sized {}