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

E0567 - 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 E0567

Generics have been used on an auto trait.

Erroneous code example:

#![feature(auto_traits)]

auto trait Generic<T> {} // error!
fn main() {}

Since an auto trait is implemented on all existing types, the compiler would not be able to infer the types of the trait’s generic parameters.

To fix this issue, just remove the generics:

#![feature(auto_traits)]

auto trait Generic {} // ok!
fn main() {}








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/./E0567.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy