about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-08-02 02:39:37 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-08-02 03:22:56 +0000
commit2c83c99058e8b2ae12013469b6c4fde27b648874 (patch)
treeec06a75b995fd4e4676074e91273dffc001d5fb4 /compiler/rustc_codegen_llvm/src
parente60ebb2f2c1facba87e7971798f3cbdfd309cd23 (diff)
downloadrust-2c83c99058e8b2ae12013469b6c4fde27b648874.tar.gz
rust-2c83c99058e8b2ae12013469b6c4fde27b648874.zip
More information for fully-qualified suggestion when there are multiple impls
```
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
  --> $DIR/E0283.rs:30:21
   |
LL |     fn create() -> u32;
   |     ------------------- `Coroutine::create` defined here
...
LL |     let cont: u32 = Coroutine::create();
   |                     ^^^^^^^^^^^^^^^^^^^ cannot call associated function of trait
   |
help: use a fully-qualified path to a specific available implementation
   |
LL |     let cont: u32 = <Impl as Coroutine>::create();
   |                     ++++++++          +
LL |     let cont: u32 = <AnotherImpl as Coroutine>::create();
   |                     +++++++++++++++          +
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions