]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0283.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0283.rs
1 trait Generator {
2     fn create() -> u32;
3 }
4
5 struct Impl;
6
7 impl Generator for Impl {
8     fn create() -> u32 { 1 }
9 }
10
11 struct AnotherImpl;
12
13 impl Generator for AnotherImpl {
14     fn create() -> u32 { 2 }
15 }
16
17 fn main() {
18     let cont: u32 = Generator::create(); //~ ERROR E0283
19 }