Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/items/use-declarations.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mod foo {
}

use crate::foo::example::iter; // good: foo is at crate root
// use example::iter; // bad: relative paths are not allowed without `self`
// use example::iter; // bad in 2015 edition: relative paths are not allowed without `self`; good in 2018 edition
use self::baz::foobaz; // good: self refers to module 'foo'
use crate::foo::bar::foobar; // good: foo is at crate root

Expand Down