Skip to content

Commit ec76675

Browse files
committed
Fix cannot find type in this scope in impl Node<T>: impl<T> Node<T>
1 parent 0d4342e commit ec76675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/double_linked_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ struct Node<T> {
77
next: Option<Rc<RefCell<Node<T>>>>,
88
}
99

10-
impl Node<T> {
11-
fn new<T>(val: T) -> Self {
10+
impl<T> Node<T> {
11+
fn new(val: T) -> Self {
1212
Node {
1313
data: val,
1414
prev: None,

0 commit comments

Comments
 (0)