30 // When we comment the next line:
33 // BEFORE, we got the following error for the `impl` below:
34 // error: use of undeclared trait name `Mul` [E0405]
35 // AFTER, we get this message:
36 // error: trait `Mul` is not in scope.
38 // help: you can import several candidates into scope (`use ...;`):
41 // help: `std::ops::Mul`
44 //~^ ERROR cannot find trait `Mul`
48 // error: use of undeclared type name `Mul` [E0412]
50 // error: type name `Mul` is not in scope. Maybe you meant:
52 // help: you can import several candidates into scope (`use ...;`):
57 // help: and 2 other candidates
59 //~^ ERROR cannot find type `Mul`
62 // Let's also test what happens if the trait doesn't exist:
63 impl ThisTraitReallyDoesntExistInAnyModuleReally
for Foo
{
64 //~^ ERROR cannot find trait `ThisTraitReallyDoesntExistInAnyModuleReally`
67 // Let's also test what happens if there's just one alternative:
69 //~^ ERROR cannot find trait `Div`
74 println
!("Hello, {:?}!", foo
);