Content-Length: 24221 | pFad | https://doc.rust-lang.org/std/iter/../clone/../../../std/../error_codes/./E0226.html

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

More than one explicit lifetime bound was used on a trait object.

Example of erroneous code:

#![allow(unused)]
fn main() {
trait Foo {}

type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two
                                    //        lifetime bound, 'a and 'b.
}

Here T is a trait object with two explicit lifetime bounds, ’a and ’b.

Only a single explicit lifetime bound is permitted on trait objects. To fix this error, consider removing one of the lifetime bounds:

#![allow(unused)]
fn main() {
trait Foo {}

type T<'a> = dyn Foo + 'a;
}








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/iter/../clone/../../../std/../error_codes/./E0226.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy