Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self in paths can only be used in start position #488

Closed
alistaim opened this issue Jun 10, 2021 · 1 comment · Fixed by #492
Closed

Self in paths can only be used in start position #488

alistaim opened this issue Jun 10, 2021 · 1 comment · Fixed by #492
Labels
bug Something isn't working

Comments

@alistaim
Copy link
Contributor

When implementing the Cloudformation model, i get this error during the codegen gradle job


    Checking aws-sdk-cloudformation v0.0.7-alpha (/Users/mclean/code/smithy-rs/aws/sdk/build/aws-sdk/cloudformation)
error: expected identifier, found keyword `Self`
   --> cloudformation/src/model.rs:142:5
    |
142 |     Self,
    |     ^^^^ expected identifier, found keyword

error[E0433]: failed to resolve: `Self` in paths can only be used in start position
   --> cloudformation/src/model.rs:142:5
    |
142 |     Self,
    |     ^^^^ `Self` in paths can only be used in start position

error[E0433]: failed to resolve: `Self` in paths can only be used in start position
   --> cloudformation/src/model.rs:139:27
    |
139 | #[non_exhaustive]#[derive(std::clone::Clone, std::cmp::Eq, std::cmp::Ord, std::cmp::PartialEq, std::cmp::PartialOrd, std::fmt::Debug, std...
    |                           ^^^^^^^^^^^^^^^^^ `Self` in paths can only be used in start position

error[E0433]: failed to resolve: `Self` in paths can only be used in start position
   --> cloudformation/src/model.rs:149:31
    |
149 |             "SELF" => CallAs::Self,
    |                               ^^^^ `Self` in paths can only be used in start position

error[E0433]: failed to resolve: `Self` in paths can only be used in start position
   --> cloudformation/src/model.rs:165:21
    |
165 |             CallAs::Self => "SELF",
    |                     ^^^^ `Self` in paths can only be used in start position

error: aborting due to 5 previous errors

@alistaim
Copy link
Contributor Author

Blocking addition of Cloudformation awslabs/aws-sdk-rust#25

@jdisanti jdisanti added the bug Something isn't working label Jun 10, 2021
@rcoh rcoh closed this as completed in #492 Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants