Skip to content

Commit

Permalink
Fix error in tag-that-dare-not-speak-its-name
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 27, 2019
1 parent 2af18a2 commit 9d691bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/test/ui/tag-that-dare-not-speak-its-name.rs
@@ -1,6 +1,5 @@
// Issue #876

#![no_implicit_prelude]
use std::vec::Vec;

fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/tag-that-dare-not-speak-its-name.stderr
@@ -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`
Expand Down

0 comments on commit 9d691bd

Please sign in to comment.