Skip to content

Commit

Permalink
remove confusing variance example
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed May 27, 2022
1 parent b74825d commit a7bafe5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/subtyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Variance of types is automatically determined as follows
| `[T]` and `[T; n]` | | covariant |
| `fn() -> T` | | covariant |
| `fn(T) -> ()` | | contravariant |
| `fn(T) -> T` | | invariant |
| `std::cell::UnsafeCell<T>` | | invariant |
| `std::marker::PhantomData<T>` | | covariant |
| `dyn Trait<T> + 'a` | covariant | invariant |
Expand Down

0 comments on commit a7bafe5

Please sign in to comment.