| make_unique_gc_object.cpp:10:21: warning: [blink-gc] Disallowed use of 'make_unique<blink::Base>' found; 'Base' is a garbage-collected type. std::unique_ptr cannot hold garbage-collected objects. |
| auto owned_base = std::make_unique<Base>(); |
| ^~~~~~~~~~~~~~~~~~~~~~~~ |
| make_unique_gc_object.cpp:11:27: warning: [blink-gc] Disallowed use of 'make_unique<blink::Base [], int>' found; 'Base' is a garbage-collected type. std::unique_ptr cannot hold garbage-collected objects. |
| auto owned_base_array = std::make_unique<Base[]>(1); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| make_unique_gc_object.cpp:12:24: warning: [blink-gc] Disallowed use of 'make_unique<blink::Derived>' found; 'Derived' is a garbage-collected type. std::unique_ptr cannot hold garbage-collected objects. |
| auto owned_derived = std::make_unique<Derived>(); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| make_unique_gc_object.cpp:13:22: warning: [blink-gc] Disallowed use of 'WrapUnique<blink::Mixin>' found; 'Mixin' is a garbage-collected type. std::unique_ptr cannot hold garbage-collected objects. |
| auto owned_mixin = base::WrapUnique(static_cast<Mixin*>(nullptr)); |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 4 warnings generated. |