File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f0775d7bfe99617892e90e956be65cc80a28e070
2
+ refs/heads/master: d9134928552bd863295e5110e4fe1f53a6c81405
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ class CoherenceChecker {
279
279
session. span_err ( item. span ,
280
280
~"no base type found for inherent \
281
281
implementation; implement a \
282
- trait instead") ;
282
+ trait or new type instead") ;
283
283
}
284
284
some( _) => {
285
285
// Nothing to do.
@@ -490,6 +490,7 @@ class CoherenceChecker {
490
490
was defined in ; \
491
491
define and \
492
492
implement a trait \
493
+ or new type \
493
494
instead") ;
494
495
}
495
496
Original file line number Diff line number Diff line change
1
+ // error-pattern: implement a trait or new type instead
2
+ impl < T > option < T > {
3
+ fn foo ( ) { }
4
+ }
5
+
6
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments