]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-35675.rs
1 // these two HELPs are actually in a new line between this line and the `enum Fruit` line
7 fn should_return_fruit() -> Apple
{
8 //~^ ERROR cannot find type `Apple` in this scope
10 //~^ ERROR cannot find function, tuple struct or tuple variant `Apple` in this scope
13 fn should_return_fruit_too() -> Fruit
::Apple
{
14 //~^ ERROR expected type, found variant `Fruit::Apple`
16 //~^ ERROR cannot find function, tuple struct or tuple variant `Apple` in this scope
20 //~^ ERROR expected type, found variant `Ok`
24 fn bar() -> Variant3
{
25 //~^ ERROR cannot find type `Variant3` in this scope
29 //~^ ERROR expected type, found variant `Some`