Skip to content

Commit 9d691bd

Browse files
committed
Fix error in tag-that-dare-not-speak-its-name
1 parent 2af18a2 commit 9d691bd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/test/ui/tag-that-dare-not-speak-its-name.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Issue #876
22

3-
#![no_implicit_prelude]
43
use std::vec::Vec;
54

65
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {

src/test/ui/tag-that-dare-not-speak-its-name.stderr

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

0 commit comments

Comments
 (0)