]> git.proxmox.com Git - rustc.git/blame - src/test/ui/object-safety/object-safety-associated-consts.curr.stderr
New upstream version 1.48.0+dfsg1
[rustc.git] / src / test / ui / object-safety / object-safety-associated-consts.curr.stderr
CommitLineData
ff7c6d11 1error[E0038]: the trait `Bar` cannot be made into an object
74b04a01 2 --> $DIR/object-safety-associated-consts.rs:12:30
ff7c6d11 3 |
74b04a01
XL
4LL | trait Bar {
5 | --- this trait cannot be made into an object...
e1599b0c 6LL | const X: usize;
74b04a01 7 | - ...because it contains this associated `const`
e1599b0c 8...
dc9dc135 9LL | fn make_bar<T:Bar>(t: &T) -> &dyn Bar {
74b04a01
XL
10 | ^^^^^^^^ the trait `Bar` cannot be made into an object
11 |
12 = help: consider moving `X` to another trait
ff7c6d11
XL
13
14error: aborting due to previous error
15
0531ce1d 16For more information about this error, try `rustc --explain E0038`.