Skip to content

Typos on 1.4.10 Smart Pointer #23

Description

@0x5A69656C
Image

I tried running this code which resulted in the error codes for "error: missing 'for' in a trait impl" I tried adding the desired 'for' which resulted in the second error code "error: expected 'where', '{', '(', or ';' after struct name, found keyword 'for'

Image Image

on line 7

fn deref(&sefl) -> &Self::Target {

I believe this should be

fn deref(&self) -> &Self::Target {

and on line 15

println("SBox drop itself!"); // just print a message

I believe this should be

println!("SBox drop itself!"); // just print a message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions