Skip to content

Commit 578bc58

Browse files
committed
---
yaml --- r: 165391 b: refs/heads/master c: 2800695 h: refs/heads/master i: 165389: 929deb9 165387: 9e428ed 165383: 75375e5 165375: 910c019 v: v3
1 parent a9e663a commit 578bc58

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3e0cdb63391af29ef83050f1b08a4232911f81f3
2+
refs/heads/master: 2800695fb064a9fcc10ecc21fee175c24d145030
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 658529467d9d69ac9e09cacf98a6d61d781c2c76
55
refs/heads/try: aee614fc4973262a5a68efc643026e2b1458d65b

trunk/src/test/compile-fail/visible-private-types-generics.rs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,46 @@ pub fn g<T>() where
2020
: Foo //~ ERROR private trait in exported type parameter bound
2121
{}
2222

23+
pub struct S;
24+
25+
impl S {
26+
pub fn f<
27+
T
28+
: Foo //~ ERROR private trait in exported type parameter bound
29+
>() {}
30+
31+
pub fn g<T>() where
32+
T
33+
: Foo //~ ERROR private trait in exported type parameter bound
34+
{}
35+
}
36+
37+
pub struct S1<
38+
T
39+
: Foo //~ ERROR private trait in exported type parameter bound
40+
> {
41+
x: T
42+
}
43+
44+
pub struct S2<T> where
45+
T
46+
: Foo //~ ERROR private trait in exported type parameter bound
47+
{
48+
x: T
49+
}
50+
51+
pub enum E1<
52+
T
53+
: Foo //~ ERROR private trait in exported type parameter bound
54+
> {
55+
V1(T)
56+
}
57+
58+
pub enum E2<T> where
59+
T
60+
: Foo //~ ERROR private trait in exported type parameter bound
61+
{
62+
V2(T)
63+
}
64+
2365
fn main() {}

0 commit comments

Comments
 (0)