Content-Length: 24128 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../../std/../../error_codes/./E0214.html

E0214 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0214

A generic type was described using parentheses rather than angle brackets.

Erroneous code example:

#![allow(unused)]
fn main() {
let v: Vec(&str) = vec!["foo"];
}

This is not currently supported: v should be defined as Vec<&str>. Parentheses are currently only used with generic types when defining parameters for Fn-family traits.

The previous code example fixed:

#![allow(unused)]
fn main() {
let v: Vec<&str> = vec!["foo"];
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../../std/../../error_codes/./E0214.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy