SHARE
TWEET

Untitled

a guest May 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. error[E0423]: expected value, found struct `CanvasState`
  2.    --> components\script\dom\canvasrenderingcontext2d.rs:165:43
  3.     |
  4. 165 |         reflect_dom_object(boxed, global, CanvasState)
  5.     |                                           ^^^^^^^^^^^ did you mean `CanvasState { /* fields */ }`?
  6.  
  7. error[E0277]: the trait bound `dom::canvasrenderingcontext2d::CanvasState: dom::bindings::reflector::DomObject` is not satisfied
  8.    --> components\script\dom\canvasrenderingcontext2d.rs:165:9
  9.     |
  10. 165 |         reflect_dom_object(boxed, global, CanvasState)
  11.     |         ^^^^^^^^^^^^^^^^^^ the trait `dom::bindings::reflector::DomObject` is not implemented for `dom::canvasrenderingcontext2d::CanvasState`
  12.     |
  13. note: required by `dom::bindings::reflector::reflect_dom_object`
  14.    --> components\script\dom\bindings\reflector.rs:16:1
  15.     |
  16. 16  | / pub fn reflect_dom_object<T, U>(
  17. 17  | |     obj: Box<T>,
  18. 18  | |     global: &U,
  19. 19  | |     wrap_fn: unsafe fn(*mut JSContext, &GlobalScope, Box<T>) -> DomRoot<T>,
  20. ...   |
  21. 26  | |     unsafe { wrap_fn(global_scope.get_cx(), global_scope, obj) }
  22. 27  | | }
  23.     | |_^
  24.  
  25. error[E0277]: the trait bound `dom::canvasrenderingcontext2d::CanvasState: dom::bindings::reflector::DomObject` is not satisfied
  26.    --> components\script\dom\canvasrenderingcontext2d.rs:165:9
  27.     |
  28. 165 |         reflect_dom_object(boxed, global, CanvasState)
  29.     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `dom::bindings::reflector::DomObject` is not implemented for `dom::canvasrenderingcontext2d::CanvasState`
  30.     |
  31.     = note: required because of the requirements on the impl of `dom::bindings::root::StableTraceObject` for `dom::bindings::root::Dom<dom::canvasrenderingcontext2d::CanvasState>`
  32. note: required by `dom::bindings::root::Root`
  33.    --> components\script\dom\bindings\root.rs:50:1
  34.     |
  35. 50  | pub struct Root<T: StableTraceObject> {
  36.     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  37.  
  38. error[E0308]: mismatched types
  39.    --> components\script\dom\canvasrenderingcontext2d.rs:165:9
  40.     |
  41. 158 |     ) -> CanvasState {
  42.     |          ----------- expected `dom::canvasrenderingcontext2d::CanvasState` because of return type
  43. ...
  44. 165 |         reflect_dom_object(boxed, global, CanvasState)
  45.     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `dom::canvasrenderingcontext2d::CanvasState`, found struct `dom::bindings::root::Root`
  46.     |
  47.     = note: expected type `dom::canvasrenderingcontext2d::CanvasState`
  48.                found type `dom::bindings::root::Root<dom::bindings::root::Dom<dom::canvasrenderingcontext2d::CanvasState>>`
  49.  
  50. error[E0308]: mismatched types
  51.   --> components\script\dom\offscreencanvasrenderingcontext2d.rs:32:68
  52.    |
  53. 32 |             canvas_state: DomRefCell::new(CanvasState::new(_global,_size)),
  54.    |                                                                    ^^^^^ expected u32, found u64
  55.    |
  56.    = note: expected type `euclid::size::TypedSize2D<u32, _>`
  57.               found type `euclid::size::TypedSize2D<u64, _>`
  58.  
  59. error: aborting due to 5 previous errors
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top