]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0033.stderr
Auto merge of #47804 - retep007:recursive-requirements, r=pnkfelix
[rust.git] / src / test / ui / error-codes / E0033.stderr
1 error[E0423]: expected value, found trait `SomeTrait`
2   --> $DIR/E0033.rs:16:33
3    |
4 16 |     let trait_obj: &SomeTrait = SomeTrait;
5    |                                 ^^^^^^^^^ not a value
6
7 error[E0038]: the trait `SomeTrait` cannot be made into an object
8   --> $DIR/E0033.rs:16:20
9    |
10 16 |     let trait_obj: &SomeTrait = SomeTrait;
11    |                    ^^^^^^^^^^ the trait `SomeTrait` cannot be made into an object
12    |
13    = note: method `foo` has no receiver
14
15 error[E0033]: type `&SomeTrait` cannot be dereferenced
16   --> $DIR/E0033.rs:21:9
17    |
18 21 |     let &invalid = trait_obj;
19    |         ^^^^^^^^ type `&SomeTrait` cannot be dereferenced
20
21 error: aborting due to 3 previous errors
22