Fix error in tag-that-dare-not-speak-its-name
This commit is contained in:
parent
2af18a2b38
commit
9d691bd9ce
@ -1,6 +1,5 @@
|
||||
// Issue #876
|
||||
|
||||
#![no_implicit_prelude]
|
||||
use std::vec::Vec;
|
||||
|
||||
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user