File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 3e0cdb63391af29ef83050f1b08a4232911f81f3
2
+ refs/heads/master: 2800695fb064a9fcc10ecc21fee175c24d145030
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 658529467d9d69ac9e09cacf98a6d61d781c2c76
5
5
refs/heads/try: aee614fc4973262a5a68efc643026e2b1458d65b
Original file line number Diff line number Diff line change @@ -20,4 +20,46 @@ pub fn g<T>() where
20
20
: Foo //~ ERROR private trait in exported type parameter bound
21
21
{ }
22
22
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
+
23
65
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments