Submission #8077965
Source Code Expand
fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let s: String = s.trim().chars() .filter( |x| match x { 'a'|'i'|'u'|'e'|'o' => false, _ => true } ) .collect(); println!("{}",s); }
Submission Info
Compile Error
error[E0308]: mismatched types --> ./Main.rs:9:13 | 9 | 'a'|'i'|'u'|'e'|'o' => false, | ^^^ expected &char, found char | = note: expected type `&char` = note: found type `char` error[E0308]: mismatched types --> ./Main.rs:9:17 | 9 | 'a'|'i'|'u'|'e'|'o' => false, | ^^^ expected &char, found char | = note: expected type `&char` = note: found type `char` error[E0308]: mismatched types --> ./Main.rs:9:21 | 9 | 'a'|'i'|'u'|'e'|'o' => false, | ^^^ expected &char, found char | = note: expected type `&char` = note: found type `char` error[E0308]: mismatched types --> ./Main.rs:9:25 | 9 | 'a'|'i'|'u'|'e'|'o' => false, | ^^^ expected &char, found char | = note: expected type `&char` = note: found type `char` error[E0308]: mismatched types --> ./Main.rs:9:29 | 9 | 'a'|'i'|'u'|'e'|'o' => false, | ...