Fix error in tag-that-dare-not-speak-its-name

This commit is contained in:
Taiki Endo 2019-02-15 23:54:05 +09:00
parent 2af18a2b38
commit 9d691bd9ce
2 changed files with 1 additions and 2 deletions

View file

@ -1,6 +1,5 @@
// Issue #876
#![no_implicit_prelude]
use std::vec::Vec;
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {

View file

@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/tag-that-dare-not-speak-its-name.rs:12:20
--> $DIR/tag-that-dare-not-speak-its-name.rs:11:20
|
LL | let x : char = last(y);
| ^^^^^^^ expected char, found enum `std::option::Option`