Skip to content

Commit a7bafe5

Browse files
authored
remove confusing variance example
1 parent b74825d commit a7bafe5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/subtyping.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Variance of types is automatically determined as follows
6161
| `[T]` and `[T; n]` | | covariant |
6262
| `fn() -> T` | | covariant |
6363
| `fn(T) -> ()` | | contravariant |
64-
| `fn(T) -> T` | | invariant |
6564
| `std::cell::UnsafeCell<T>` | | invariant |
6665
| `std::marker::PhantomData<T>` | | covariant |
6766
| `dyn Trait<T> + 'a` | covariant | invariant |

0 commit comments

Comments
 (0)