Skip to content

Commit 6773e6f

Browse files
sgrifnikomatsakis
authored andcommitted
Update the definition of "marker trait"
The consensus has been that inheriting from a trait which has associated items does not introduce coherence violations for the subtrait.
1 parent 78da1e9 commit 6773e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

0000-allow-overlapping-impls-on-marker-traits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ cases.
2121
# Detailed design
2222

2323
For the purpose of this RFC, the definition of a marker trait is a trait with no
24-
associated functions, which does not inherit from any other trait. The design
25-
here is quite straightforward. The following code fails to compile today:
24+
associated items. The design here is quite straightforward. The following code
25+
fails to compile today:
2626

2727
```rust
2828
trait Marker<A> {}

0 commit comments

Comments
 (0)