Решение на Forth от Даяна Веселинова
Обратно към всички решения
Към профила на Даяна Веселинова
Резултати
- 0 точки от тестове
- 0 бонус точки
- 0 точки общо
- 0 успешни тест(а)
- 0 неуспешни тест(а)
Код
Лог от изпълнението
Compiling solution v0.1.0 (/tmp/d20190128-22631-bc85yn/solution)
warning: unused variable: `name`
--> src/lib.rs:43:39
|
43 | pub fn def_unary_op<F>(&mut self, name: &str, op: F)
| ^^^^ help: consider using `_name` instead
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: `name`
--> src/lib.rs:57:40
|
57 | pub fn def_binary_op<F>(&mut self, name: &str, op: F)
| ^^^^ help: consider using `_name` instead
warning: unused variable: `name`
--> src/lib.rs:43:39
|
43 | pub fn def_unary_op<F>(&mut self, name: &str, op: F)
| ^^^^ help: consider using `_name` instead
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: `name`
--> src/lib.rs:57:40
|
57 | pub fn def_binary_op<F>(&mut self, name: &str, op: F)
| ^^^^ help: consider using `_name` instead
error[E0599]: no method named `stack` found for type `solution::Interpreter` in the current scope
--> tests/solution_test.rs:41:32
|
41 | assert_eq!(interpreter.stack().collect::<Vec<_>>(), vec![2, 1]);
| ^^^^^ private field, not a method
error[E0599]: no method named `stack` found for type `solution::Interpreter` in the current scope
--> tests/solution_test.rs:52:32
|
52 | assert_eq!(interpreter.stack().collect::<Vec<_>>(), vec![2, 2, 1]);
| ^^^^^ private field, not a method
error[E0599]: no method named `stack` found for type `solution::Interpreter` in the current scope
--> tests/solution_test.rs:63:32
|
63 | assert_eq!(interpreter.stack().collect::<Vec<_>>(), vec![2, 3, 1]);
| ^^^^^ private field, not a method
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `solution`.
To learn more, run the command again with --verbose.
История (1 версия и 1 коментар)
Даяна качи първо решение на 27.01.2019 16:56 (преди над 4 години)