summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/tuple-variadic-check.rs
blob: 505de53481f85c9c11453cf650cfd41b24428876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(rustdoc_internals)]

trait Mine {}

// This one is fine
#[doc(fake_variadic)]
impl<T> Mine for (T,) {}

trait Mine2 {}

// This one is not
#[doc(fake_variadic)] //~ ERROR
impl<T, U> Mine for (T,U) {}

fn main() {}