]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-safety/object-safety-no-static.curr.stderr
099876c562aec12d5f1b17eecf72665498962beb
[rust.git] / src / test / ui / object-safety / object-safety-no-static.curr.stderr
1 error[E0038]: the trait `Foo` cannot be made into an object
2   --> $DIR/object-safety-no-static.rs:12:18
3    |
4 LL |     fn foo() {}
5    |        --- associated function `foo` has no `self` parameter
6 ...
7 LL | fn diverges() -> Box<dyn Foo> {
8    |                  ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0038`.